Fix the check for a non value in the time update for original timezone.

This commit is contained in:
efrick
2020-04-15 21:06:36 -04:00
parent 122f33fbd6
commit 1ff7d4080c
3 changed files with 15 additions and 2 deletions

View File

@@ -34,7 +34,7 @@ function startTime(){
hour:'2-digit',
minute:'2-digit',
second:'2-digit',});
if(original_tz != null){
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' ,{
timeZone: original_tz,
dateStyle:'long',
@@ -47,5 +47,5 @@ function startTime(){
minute:'2-digit',
second:'2-digit'});
}
document.getElementById('JStz').innerHTML = current_tz;
//document.getElementById('JStz').innerHTML = current_tz;
}