From e5325917b2a015b1932d8bdde54c2ead18d16905 Mon Sep 17 00:00:00 2001 From: Patrick Alvin Alcala Date: Thu, 12 Feb 2026 12:46:55 +0800 Subject: [PATCH] Added new function --- src/utils/functions/getDateTime.ts | 6 ++++++ src/utils/functions/index.ts | 1 + 2 files changed, 7 insertions(+) create mode 100644 src/utils/functions/getDateTime.ts diff --git a/src/utils/functions/getDateTime.ts b/src/utils/functions/getDateTime.ts new file mode 100644 index 0000000..5980360 --- /dev/null +++ b/src/utils/functions/getDateTime.ts @@ -0,0 +1,6 @@ +import getApi from "./getApi.ts" + +export default async () => { + const response = await getApi('get-datetime') + return response.result +} \ No newline at end of file diff --git a/src/utils/functions/index.ts b/src/utils/functions/index.ts index 114d5b2..aad7471 100644 --- a/src/utils/functions/index.ts +++ b/src/utils/functions/index.ts @@ -9,3 +9,4 @@ export { default as voidPopsApi } from './voidPopsApi.ts'; export { default as securePassword } from './securePassword.ts'; export { default as saveNewName } from './saveNewName.ts'; export { default as saveNewPassword } from './saveNewPassword.ts'; +export { default as getDateTime } from './getDateTime.ts';