Ringobot log - RingoJS IRC channel: #ringojs on irc.freenode.net
2010-07-29:
[3:57] <oravecz> looks like there isn't a problem passing objects into JS using the env map in ringo servlet.[14:28] <emilis_info> parsing dates is fun
[14:30] <daian> indeed it is.
[14:30] <emilis_info> d = new Date();d.setFullYear(2010);d.setMonth(1);d.setDate(1);print(d)
[14:31] <emilis_info> guess the result without running it
[14:31] <emilis_info> :D
[14:32] <daian> well, it's setting the date to 1/1/2010. but i'm guessing it's going to print out the milliseconds from the Epoch
[14:32] <emilis_info> doubly wrong
[14:33] <daian> well then
[14:33] <emilis_info> March 1st this year and this time of day
[14:33] <emilis_info> :D
[14:33] <emilis_info> first of all setMonth() counts months from 0
[14:33] <emilis_info> so 1 is february
[14:34] <daian> hmmm, at least i got the year right :)
[14:34] <emilis_info> second: when you do a setMonth(february) on todays date (2010-07-29) you instantly get (2010-03-01)
[14:34] <emilis_info> because february obviously had 28 days this year
[14:36] <daian> ahhh, since it's setting the month before changing the day, and overflowing
[14:36] <emilis_info> yup
[14:36] <daian> such odd behaviour
[14:37] <emilis_info> IMHO someone should write a well thought out library for dealing with Dates in JS
[14:38] <daian> someone should
[14:39] <daian> but i don't know if anyone will
[14:41] <emilis_info> yeah, we should remember the story of somebody, anybody, everybody and nobody ;-)
[14:43] <daian> sounds about right
[15:38] <hannesw> almost done with core -> utils refactoring
[15:38] <hannesw> Passed 292; Failed 5; Errors 6;
[15:38] <hannesw> I'm also doing a fair amount of cleanup, especially in string utils
[16:04] <tschaub> nice
[16:28] <emilis_info> which config parameters set port for the app? I always forget
[17:22] <daian> <% content | substring 0 3 %>
[17:22] <daian> assuming content is a string, that's the right way to call the substring filter, right?
