From 86751ae2ea76bb88f28ff9e88f757e1063d08225 Mon Sep 17 00:00:00 2001 From: Yongmin Hong Date: Tue, 21 May 2024 15:42:54 +0900 Subject: [PATCH] replace time.php into redirect Summary: D110 made this obsolete; redirect to `https://revi.xyz/time`. Signed-off-by: Yongmin Hong Test Plan: k.revi.xyz/time.php > 302 revi.xyz/time Reviewers: O1 revi & automations, revi Reviewed By: O1 revi & automations, revi Differential Revision: https://issuetracker.revi.xyz/D119 --- time.php | 70 ++------------------------------------------------------ 1 file changed, 2 insertions(+), 68 deletions(-) diff --git a/time.php b/time.php index 7286284..9b625c0 100644 --- a/time.php +++ b/time.php @@ -1,70 +1,4 @@ - - - - -Hey revi, what time is it for you? - - - - - - - - - format('Y-m-d'); -$time = $dateTimeSeoul->format('H:i:s'); - -// Create the Zonestamp link with current epoch time -$currentEpoch = time(); -$zonestampLink = "https://zonestamp.toolforge.org/{$currentEpoch}"; - -// Display the message with formatted date, time, and Zonestamp link -echo "

It is {$date} {$time} in Asia/Seoul, where revi lives.
Check in your timezone: ZoneStamp.

"; - -?> -
-

Source code @ GitHub. (Warning: it is far from 'clean'.) Also, please note that there is only one correct way to write dates.

-

Also another small note: the clock here uses 24 hours notation.

- - +header('Location: https://revi.xyz/time/'); +exit();