fix: wrong creation date
This commit is contained in:
parent
6a90866d56
commit
f81c3d1585
|
@ -34,7 +34,7 @@ dayjs.extend(relativeTime);
|
|||
dayjs.extend(utc);
|
||||
|
||||
// @ts-expect-error Generated<string> is string
|
||||
const dateFromNow = dayjs(data?.created_at).add(3, 'hour').from(dayjs.utc());
|
||||
const dateFromNow = dayjs.utc(data?.created_at).from(dayjs.utc());
|
||||
---
|
||||
|
||||
<Layout>
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
import { remoteLog } from "@/lib/utils";
|
||||
|
||||
const data = JSON.parse(document.getElementById('map').dataset.targetLocation)
|
||||
|
||||
const TARGET_LOCATION = data.coordinates
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
import { onLocationError } from "@/lib/error";
|
||||
import { remoteLog } from "@/lib/utils";
|
||||
|
||||
var map = L.map('map').setView([41.024857599001905, 28.940787550837882], 10);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user