From d18ec187847893f94418b29bc6a087d6b2dd9a2d Mon Sep 17 00:00:00 2001 From: winter Date: Fri, 7 Feb 2025 18:26:05 +0000 Subject: localise note timestamps and stuff --- misc/format_datetime.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 misc/format_datetime.php (limited to 'misc/format_datetime.php') diff --git a/misc/format_datetime.php b/misc/format_datetime.php new file mode 100644 index 0000000..1a4db52 --- /dev/null +++ b/misc/format_datetime.php @@ -0,0 +1,14 @@ +setTimeZone($tz ?? $dt->getTimezone()); + return $formatter->format($dt); +} \ No newline at end of file -- cgit v1.3