Merge branch 'timefix' into prod
This commit is contained in:
commit
955cc9544b
3
clock.js
3
clock.js
@ -18,14 +18,12 @@ function startTime(){
|
|||||||
+ current_time.toLocaleString('en-US',
|
+ current_time.toLocaleString('en-US',
|
||||||
{timeZone: current_tz,
|
{timeZone: current_tz,
|
||||||
hourCycle:'h24',
|
hourCycle:'h24',
|
||||||
timeStyle:'long',
|
|
||||||
hour: '2-digit',
|
hour: '2-digit',
|
||||||
minute:'2-digit',
|
minute:'2-digit',
|
||||||
second:'2-digit',
|
second:'2-digit',
|
||||||
timeZoneName:'short'});
|
timeZoneName:'short'});
|
||||||
document.getElementById('time_body').innerHTML = current_time.toLocaleString('en-EN' ,{
|
document.getElementById('time_body').innerHTML = current_time.toLocaleString('en-EN' ,{
|
||||||
timeZone: current_tz,
|
timeZone: current_tz,
|
||||||
dateStyle:'long',
|
|
||||||
hourCycle:'h24',
|
hourCycle:'h24',
|
||||||
weekday:'short',
|
weekday:'short',
|
||||||
month:'short',
|
month:'short',
|
||||||
@ -37,7 +35,6 @@ function startTime(){
|
|||||||
if(original_tz){//Test if there is a non-null value for original_tz. If True then the part of the page this pertains to is being displayed.
|
if(original_tz){//Test if there is a non-null value for original_tz. If True then the part of the page this pertains to is being displayed.
|
||||||
document.getElementById('time_original').innerHTML = current_time.toLocaleString('en-EN' ,{
|
document.getElementById('time_original').innerHTML = current_time.toLocaleString('en-EN' ,{
|
||||||
timeZone: original_tz,
|
timeZone: original_tz,
|
||||||
dateStyle:'long',
|
|
||||||
hourCycle:'h24',
|
hourCycle:'h24',
|
||||||
weekday:'short',
|
weekday:'short',
|
||||||
month:'short',
|
month:'short',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user