Time bug fixed
parent
d7e8b21fad
commit
a16b9581c5
2
.env
2
.env
|
|
@ -1 +1 @@
|
|||
NEXT_PUBLIC_BASE_URL_APP="https://oyoonapi.yazd.ir/"
|
||||
NEXT_PUBLIC_BASE_URL_APP="https://sootzaniapi.shetabdahi.ir/"
|
||||
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "sootzani",
|
||||
"version": "0.1.13",
|
||||
"version": "0.1.14",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "next dev",
|
||||
|
|
|
|||
Loading…
Reference in New Issue