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) {
|
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");
|
||||||
|
|
|
||||||
|
|
@ -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",
|
||||||
|
|
|
||||||
|
|
@ -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",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue