Hello,

    When i have a Time object, to get to next day i do: myTime += (60*60*24)
    Not very elegant, but it works and I didn't find a nicer way.
    well, i thought it worked...

    now we are going to change the time in europe...
    So it breaks my assumption...

    any proper way to fix it?

emmanuel

irb(main):008:0> now = Time.now
Tue Oct 21 08:14:44 Central Europe Daylight Time 2003
irb(main):009:0> todayMidnight = Time.local(now.year, now.month, 
now.day, 0,0,0)
Tue Oct 21 00:00:00 Central Europe Daylight Time 2003 # today at 0:00

irb(main):010:0> todayMidnight  + (60*60*24)
Wed Oct 22 00:00:00 Central Europe Daylight Time 2003 # tomorrow at 0:00

[..]

irb(main):014:0> todayMidnight  + (60*60*24)*5
Sun Oct 26 00:00:00 Central Europe Daylight Time 2003 # sun at 0:00
irb(main):015:0> todayMidnight  + (60*60*24)*6
Sun Oct 26 23:00:00 Central Europe Standard Time 2003 #  <---------- 
!!!! sun at 23:00