Fix 12 am/pm
This commit is contained in:
parent
a8e5494aa0
commit
e333912462
@ -81,6 +81,7 @@ public class Time{
|
|||||||
this.h=(totm/60)%24;
|
this.h=(totm/60)%24;
|
||||||
if(this.h==0){
|
if(this.h==0){
|
||||||
this.h+=12;
|
this.h+=12;
|
||||||
|
this.id="am";
|
||||||
}else if(this.h==12){
|
}else if(this.h==12){
|
||||||
this.id="pm";
|
this.id="pm";
|
||||||
}else if(this.h>12){
|
}else if(this.h>12){
|
||||||
|
Loading…
Reference in New Issue
Block a user