-
Notifications
You must be signed in to change notification settings - Fork 3
Description
Hello, I wanted to report a potential issue when using Crazy Ivan on Linux (Ubuntu 13.10) vs. OSX (10.6.8).
On OSX I get (had a friend run the test since I dont have access to a OSX machine):
ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin10.0]
Last login: Fri Dec 27 15:14:12 on console
David-Mandias-MacBook-Pro:~ davidmandia$ irb
Time.now
=> Sat Jan 04 16:54:50 -0500 2014
and on Linux:
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]
richardm@richardm-vbox:~/dev/crazy_ivan$ irb
irb(main):001:0> Time.now
=> 2014-01-04 13:38:03 -0800
I noticed the following comment in a generated index.html at line 214:
// Not sure why providing a 3-letter day trips up Date.js sometimes
My guess then, is that when doing something like:
Date.parse(timestamp.substring(4)).toString("HH:mm");
the intent is to remove the "Sat " so the Date.parse works. However, on Linux, it seems removing those 4 characters takes off the year, which causes the Data.parse to fail.
Does this seem to make sense?
Perhaps there could be a slightly more sophisticated check which sees whether the start of the data is characters, i.e. OSX style before removing them.
Please let me know if this seems to make sense, I'd be certainly happy to follow up with a patch to try and fix if you think I've identified a real issue here.
Thanks!