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:
13
clock.js
13
clock.js
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user