Time bug fixed

Kahdooei
Hossein Rahmani 2024-01-30 10:10:25 +03:30
parent d7e8b21fad
commit a16b9581c5
4 changed files with 6 additions and 6 deletions

2
.env
View File

@ -1 +1 @@
NEXT_PUBLIC_BASE_URL_APP="https://oyoonapi.yazd.ir/" NEXT_PUBLIC_BASE_URL_APP="https://sootzaniapi.shetabdahi.ir/"

View File

@ -13,7 +13,7 @@ export function cn(...inputs: ClassValue[]) {
} }
export function convertDate(date: string) { export function convertDate(date: string) {
const convertedDate = dayjs(date) const convertedDate = dayjs(date + "Z")
.calendar("jalali") .calendar("jalali")
.locale("fa") .locale("fa")
.format("YYYY/M/DD"); .format("YYYY/M/DD");
@ -22,7 +22,7 @@ export function convertDate(date: string) {
export function convertFullTime(date: string) { export function convertFullTime(date: string) {
const convertedDate = dayjs(date) const convertedDate = dayjs(date + "Z")
.calendar("jalali") .calendar("jalali")
.locale("fa") .locale("fa")
.format(" HH:mm - YYYY/M/DD"); .format(" HH:mm - YYYY/M/DD");

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "sootzani", "name": "sootzani",
"version": "0.1.13", "version": "0.1.14",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "sootzani", "name": "sootzani",
"version": "0.1.13", "version": "0.1.14",
"dependencies": { "dependencies": {
"@hookform/resolvers": "^3.3.2", "@hookform/resolvers": "^3.3.2",
"@radix-ui/react-alert-dialog": "^1.0.5", "@radix-ui/react-alert-dialog": "^1.0.5",

View File

@ -1,6 +1,6 @@
{ {
"name": "sootzani", "name": "sootzani",
"version": "0.1.13", "version": "0.1.14",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "next dev", "dev": "next dev",