Re:Curl.io – Share files from your terminal or ssh
by jbnicolai on Saturday August 30, 2014 @10:29PM
(#8248263)
Couldn't find any feedback form on the site, so I guess I'll post it here. Seems there's a small bug in the way the time, dispayed in the console, is calculated.
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);
Re:Curl.io – Share files from your terminal or ssh
by dizda on Sunday August 31, 2014 @08:03AM
(#8249112)
Thanks for the feedback, indeed I didn't want to use momentjs to overload the speed of the site, but I didn't notice for that mistake, thanks I appreciate :-)
FilerCtrl uses:
Which does not respect the current timezone.I suppose it could be fixed by replacing
with Although you'd probably be better of using a library like http://momentjs.com/.