fix: wrong creation date

This commit is contained in:
log101 2024-02-06 21:09:26 +03:00
parent 6a90866d56
commit f81c3d1585
3 changed files with 1 additions and 4 deletions

View File

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

View File

@ -1,5 +1,3 @@
import { remoteLog } from "@/lib/utils";
const data = JSON.parse(document.getElementById('map').dataset.targetLocation)
const TARGET_LOCATION = data.coordinates

View File

@ -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);