@icvdeveloper/common-module 0.0.53 → 0.0.55

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.
package/dist/module.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "v3plus-common-module",
3
3
  "configKey": "v3plusCommonModule",
4
- "version": "0.0.53"
4
+ "version": "0.0.55"
5
5
  }
@@ -5,14 +5,10 @@ export const useDateFormat = () => {
5
5
  return format(new Date(parseISO(date)), dateFormat);
6
6
  };
7
7
  const formatTimezoneToLocal = (date, dateFormat, timezone) => {
8
- return formatTz(
9
- new Date(
10
- formatTz(parseISO(date), "yyyy-MM-dd HH:mm z", {
11
- timeZone: timezone
12
- })
13
- ),
14
- dateFormat
15
- );
8
+ const tempDate = typeof date === "string" ? parseISO(date) : date;
9
+ return formatTz(tempDate, dateFormat, {
10
+ timeZone: timezone
11
+ });
16
12
  };
17
13
  return {
18
14
  formatTimezoneToLocal,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icvdeveloper/common-module",
3
- "version": "0.0.53",
3
+ "version": "0.0.55",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {