diff options
author | floppydiskette <floppydisk@hyprcat.net> | 2024-08-22 22:23:36 +0100 |
---|---|---|
committer | floppydiskette <floppydisk@hyprcat.net> | 2024-08-22 22:24:01 +0100 |
commit | ed711791b6f2cb4bf30e83998eff3e4dcb890c7c (patch) | |
tree | 75e0c0a5adc84d499168b2591beaf1997ce14628 | |
parent | 193a000f28c05debac9880d8d9f91d1d4426d466 (diff) |
YOLO
-rw-r--r-- | config/app.php | 2 | ||||
-rw-r--r-- | public/js/liveClock.js | 6 |
2 files changed, 2 insertions, 6 deletions
diff --git a/config/app.php b/config/app.php index 72a3525..bd3b276 100644 --- a/config/app.php +++ b/config/app.php @@ -5,7 +5,7 @@ use Illuminate\Support\ServiceProvider; return [ 'name' => env('APP_NAME', 'diskfloppy.me'), - 'version' => '2024.07.12', + 'version' => '2024.08.22', 'env' => env('APP_ENV', 'production'), 'debug' => (bool) env('APP_DEBUG', false), 'url' => env('APP_URL', 'http://localhost'), diff --git a/public/js/liveClock.js b/public/js/liveClock.js index 07c9eae..0e7b5db 100644 --- a/public/js/liveClock.js +++ b/public/js/liveClock.js @@ -1,10 +1,6 @@ function time() { var span = document.getElementById("clock"); var d = new Date(); - var s = d.getSeconds(); - var m = d.getMinutes(); - var h = d.getHours(); - span.textContent = - ("0" + h).substr(-2) + ":" + ("0" + m).substr(-2) + ":" + ("0" + s).substr(-2); + span.textContent = d.toLocaleString('en-US', {hour: '2-digit', minute: '2-digit', second: '2-digit', hour12: false, timeZone: 'Europe/London' }) } setInterval(time, 1000); |