1
0
mirror of https://github.com/Tygs/0bin.git synced 2023-08-10 21:13:00 +03:00
This commit is contained in:
sam
2012-05-23 18:46:18 +02:00
parent 72fc5d4646
commit 419f618a30
2 changed files with 4 additions and 4 deletions

View File

@ -146,9 +146,9 @@ window.zerobin = {
getFormatedTime: function(date){
date = date || new Date();
var h = date.getHours();
var m = date.getMinutes();
var s = date.getSeconds();
var h = date.getHours(),
m = date.getMinutes(),
s = date.getSeconds();
if (h < 10) {h = "0" + h;}
if (m < 10) {m = "0" + m;}
if (s < 10) {s = "0" + s;}