acsi-core 1.2.1 → 1.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -48,4 +48,3 @@ export declare const COLORS: {
48
48
  };
49
49
  export declare const ORGANIZATION_TENANT = "ORGANIZATION_TENANT";
50
50
  export declare const ORGANIZATION_TEAM = "ORGANIZATION_TEAM";
51
- export declare const TIMEZONE_ID = "TIMEZONE_ID";
@@ -0,0 +1,6 @@
1
+ declare const _default: () => string;
2
+ /**
3
+ * Get the user's timezone ID (IANA timezone identifier)
4
+ * @returns Timezone ID (e.g., "Asia/Ho_Chi_Minh", "America/New_York")
5
+ */
6
+ export default _default;
@@ -0,0 +1,8 @@
1
+ declare const _default: (time: string, FORMAT?: string | undefined) => string;
2
+ /**
3
+ * Converts local time to UTC format for server API calls
4
+ * @param time - Local time string (can be ISO format or other moment-parseable formats)
5
+ * @param FORMAT - Optional output format (default: "YYYY-MM-DDTHH:mm:ss[Z]")
6
+ * @returns UTC formatted time string
7
+ */
8
+ export default _default;
@@ -1,3 +1,3 @@
1
- import moment from "moment-timezone";
2
- declare const _default: (time: string, timezone?: string | undefined) => moment.Moment | null;
1
+ import moment from "moment";
2
+ declare const _default: (time: string) => moment.Moment | null;
3
3
  export default _default;
@@ -1,9 +1,2 @@
1
1
  declare const _default: (time: string, FORMAT?: string | undefined) => string;
2
- /**
3
- * Convert a UTC time string to a formatted date string, optionally applying a timezone.
4
- *
5
- * - If `timezone` is omitted, the result is converted to the local machine timezone.
6
- * - If `timezone` is an offset (e.g., "UTC+2", "+02:00"), the offset is applied to the UTC time.
7
- * - If `timezone` is a named IANA zone (e.g., "Asia/Ho_Chi_Minh"), the time is converted to that zone.
8
- */
9
2
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "acsi-core",
3
- "version": "1.2.1",
3
+ "version": "1.2.6",
4
4
  "description": "Contains core components && functions for acsi-core project",
5
5
  "author": "brss",
6
6
  "license": "MIT",