Nathaniel van Diepen 11 anni fa
parent
commit
9c484c8d66
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      app/www/js/omnomirc.js

+ 2 - 2
app/www/js/omnomirc.js

@@ -217,8 +217,8 @@
 						switch(timestamp[i]){
 							case 'H':text+=((date.getHours()+11)%12)+1;break;
 							case 'h':text+=date.getHours();break;
-							case 'm':text+=date.getMinutes();break;
-							case 's':text+=date.getSeconds();break;
+							case 'm':text+=(date.getMinutes()>9?'':'0')+date.getMinute();break;
+							case 's':text+=(date.getSeconds()>9?'':'0')+date.getSeconds();break;
 							case 't':text+=(date.getHours()>11)?'pm':'am';break;
 							default:text+=timestamp[i];
 						}