diff --git a/.env b/.env index d82fc5d..2d0c1a9 100644 --- a/.env +++ b/.env @@ -1 +1 @@ -NEXT_PUBLIC_BASE_URL_APP="https://oyoonapi.yazd.ir/" \ No newline at end of file +NEXT_PUBLIC_BASE_URL_APP="https://sootzaniapi.shetabdahi.ir/" \ No newline at end of file diff --git a/lib/utils.ts b/lib/utils.ts index d9ceeaa..5e4d5ee 100644 --- a/lib/utils.ts +++ b/lib/utils.ts @@ -13,7 +13,7 @@ export function cn(...inputs: ClassValue[]) { } export function convertDate(date: string) { - const convertedDate = dayjs(date) + const convertedDate = dayjs(date + "Z") .calendar("jalali") .locale("fa") .format("YYYY/M/DD"); @@ -22,7 +22,7 @@ export function convertDate(date: string) { export function convertFullTime(date: string) { - const convertedDate = dayjs(date) + const convertedDate = dayjs(date + "Z") .calendar("jalali") .locale("fa") .format(" HH:mm - YYYY/M/DD"); diff --git a/package-lock.json b/package-lock.json index 94f7492..7653aff 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "sootzani", - "version": "0.1.13", + "version": "0.1.14", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "sootzani", - "version": "0.1.13", + "version": "0.1.14", "dependencies": { "@hookform/resolvers": "^3.3.2", "@radix-ui/react-alert-dialog": "^1.0.5", diff --git a/package.json b/package.json index 5e0630c..aa9746f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sootzani", - "version": "0.1.13", + "version": "0.1.14", "private": true, "scripts": { "dev": "next dev",