Logs for the RingoJS IRC channel, as logged by ringostarr.

2010-07-29

[05:58] <oravecz> looks like there isn't a problem passing objects into JS using the env map in ringo servlet.

[16:29] <emilis_info> parsing dates is fun

[16:31] <daian> indeed it is.

[16:32] <emilis_info> d = new Date();d.setFullYear(2010);d.setMonth(1);d.setDate(1);print(d)

[16:32] <emilis_info> guess the result without running it

[16:32] <emilis_info> :D

[16:33] <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

[16:33] <emilis_info> doubly wrong

[16:34] <daian> well then

[16:34] <emilis_info> March 1st this year and this time of day

[16:34] <emilis_info> :D

[16:34] <emilis_info> first of all setMonth() counts months from 0

[16:35] <emilis_info> so 1 is february

[16:35] <daian> hmmm, at least i got the year right :)

[16:35] <emilis_info> second: when you do a setMonth(february) on todays date (2010-07-29) you instantly get (2010-03-01)

[16:36] <emilis_info> because february obviously had 28 days this year

[16:37] <daian> ahhh, since it's setting the month before changing the day, and overflowing

[16:37] <emilis_info> yup

[16:38] <daian> such odd behaviour

[16:38] <emilis_info> IMHO someone should write a well thought out library for dealing with Dates in JS

[16:39] <daian> someone should

[16:40] <daian> but i don't know if anyone will

[16:42] <emilis_info> yeah, we should remember the story of somebody, anybody, everybody and nobody ;-)

[16:45] <daian> sounds about right

[17:39] <hannesw> almost done with core -> utils refactoring

[17:39] <hannesw> Passed 292; Failed 5; Errors 6;

[17:39] <hannesw> I'm also doing a fair amount of cleanup, especially in string utils

[18:06] <tschaub> nice

[18:29] <emilis_info> which config parameters set port for the app? I always forget

[19:23] <daian> <% content | substring 0 3 %>

[19:23] <daian> assuming content is a string, that's the right way to call the substring filter, right?

[23:59] <hannesw> http://github.com/ringo/ringojs/compare/utils

[23:59] <hannesw> no more extending of core objects

[23:59] <hannesw> i feel much better now :)