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) {
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");

4
package-lock.json generated
View File

@ -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",

View File

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