summaryrefslogtreecommitdiff
path: root/geshem/app/components/Datetime.tsx
diff options
context:
space:
mode:
authorYuval Adam <_@yuv.al>2024-09-23 10:29:53 +0200
committerYuval Adam <_@yuv.al>2024-09-23 10:29:53 +0200
commit8a6ff5a2c15422badf0bc9c8166787dc23a71072 (patch)
treeda45cc6fc598520102260da87c3733107ef4e980 /geshem/app/components/Datetime.tsx
parent51370d591d4f2ac4eddd8b2ea2f9c5118fbf9ab1 (diff)
Move all geshem/ files to root
Diffstat (limited to 'geshem/app/components/Datetime.tsx')
-rw-r--r--geshem/app/components/Datetime.tsx28
1 files changed, 0 insertions, 28 deletions
diff --git a/geshem/app/components/Datetime.tsx b/geshem/app/components/Datetime.tsx
deleted file mode 100644
index 0a8fbcf..0000000
--- a/geshem/app/components/Datetime.tsx
+++ /dev/null
@@ -1,28 +0,0 @@
-import React from "react";
-import { DateTime as LuxonDateTime } from "luxon";
-
-interface DateTimeProps {
- images: string[],
- slider: number
-}
-
-export function DateTime({ images, slider }: DateTimeProps) {
- let datetime = null;
-
- if (images.length > 0) {
- const ds = images[slider].substring(5, 18);
- datetime = LuxonDateTime.fromFormat(ds, "yyyyMMdd/HHmm", {
- zone: "utc",
- }).setZone("Asia/Jerusalem");
- }
-
- const date = datetime ? datetime.toFormat("dd/MM/y") : "";
- const time = datetime ? datetime.toFormat("HH:mm") : "";
-
- return (
- <div id="datetime">
- <div id="date">{date}</div>
- <div id="time">{time}</div>
- </div>
- );
-}