projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Convert all remaining tabs by 2spaces
[vchess.git]
/
client
/
src
/
utils
/
datetime.js
diff --git
a/client/src/utils/datetime.js
b/client/src/utils/datetime.js
index
49b70ca
..
5addd25
100644
(file)
--- a/
client/src/utils/datetime.js
+++ b/
client/src/utils/datetime.js
@@
-1,17
+1,17
@@
function zeroPad(x)
{
function zeroPad(x)
{
-
return (x<10 ? "0" : "") + x;
+ return (x<10 ? "0" : "") + x;
}
export function getDate(d)
{
}
export function getDate(d)
{
-
return d.getFullYear() + '-' + zeroPad(d.getMonth()+1) + '-' + zeroPad(d.getDate());
+ return d.getFullYear() + '-' + zeroPad(d.getMonth()+1) + '-' + zeroPad(d.getDate());
}
export function getTime(d)
{
}
export function getTime(d)
{
-
return zeroPad(d.getHours()) + ":" + zeroPad(d.getMinutes()) + ":" +
-
zeroPad(d.getSeconds());
+ return zeroPad(d.getHours()) + ":" + zeroPad(d.getMinutes()) + ":" +
+ zeroPad(d.getSeconds());
}
function padDigits(x)
}
function padDigits(x)