Here are a few changes to fix display issues when using 12hr clock. Example: noon was displayed as 00:00 PM
In Parser.js
if(!pm&&(parts[JST_FIELD_HOUR]>12)){pm=true} if(pm&&(parts[JST_FIELD_HOUR]<12)){parts[JST_FIELD_HOUR]+=12}else if(!pm&&(parts[JST_FIELD_HOUR]==12)){parts[JST_FIELD_HOUR]=0}
and
case HOUR_12:if((parts[JST_FIELD_HOUR]==12)||(parts[JST_FIELD_HOUR]==0)){ret+="12"} else {ret+=lpad(parts[JST_FIELD_HOUR],entry.length,"0")}; break;
Log in to post a comment.
Here are a few changes to fix display issues when using 12hr clock. Example: noon was displayed as 00:00 PM
In Parser.js
if(!pm&&(parts[JST_FIELD_HOUR]>12)){pm=true}
if(pm&&(parts[JST_FIELD_HOUR]<12)){parts[JST_FIELD_HOUR]+=12}else if(!pm&&(parts[JST_FIELD_HOUR]==12)){parts[JST_FIELD_HOUR]=0}
and
case HOUR_12:if((parts[JST_FIELD_HOUR]==12)||(parts[JST_FIELD_HOUR]==0)){ret+="12"} else {ret+=lpad(parts[JST_FIELD_HOUR],entry.length,"0")};
break;