Fix for ruby 1.9 and time 24:00