diff options
-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); |