by jbnicolai · 12y ago · 0 comments
FilerCtrl uses:
var c = new Date;
a.date = c.toDateString() + " " + ("0" + c.getUTCHours()).slice(-2) + ":" + ("0" + c.getUTCMinutes()).slice(-2) + ":" + ("0" + c.getUTCSeconds()).slice(-2);
Which does not respect the current timezone.I suppose it could be fixed by replacing
c.getUTCHours()).slice(-2)
with (c.getUTCHours()).slice(-2) + (c.getTimezoneOffset() / 60))
Although you'd probably be better of using a library like http://momentjs.com/.