Update to the clock.

Now allowing for display of the time in the original timezone as well as
the user selected one.
I've also added a rule to the CSS file to better display the selection
list on mobile screens.
This commit is contained in:
efrick
2020-04-15 15:26:21 -04:00
parent ff59adfee1
commit 122f33fbd6
4 changed files with 36 additions and 5 deletions

View File

@@ -34,5 +34,18 @@ function startTime(){
hour:'2-digit',
minute:'2-digit',
second:'2-digit',});
if(original_tz != null){
document.getElementById('time_original').innerHTML = current_time.toLocaleString('en-EN' ,{
timeZone: original_tz,
dateStyle:'long',
hourCycle:'h24',
weekday:'short',
month:'short',
day:'2-digit',
year:'numeric',
hour:'2-digit',
minute:'2-digit',
second:'2-digit'});
}
document.getElementById('JStz').innerHTML = current_tz;
}