Menu

#5 Fix to bug with zero datetime fields in MySQL

open
nobody
None
5
2004-02-23
2004-02-23
Anonymous
No

MySQL allows timestamps of the form "0000-00-00
00:00:00", which Time.gm() rightly complains about.
This patch prevents an ArgumentError exception from
propagating in this case, and returns nil instead.

Discussion

  • Nobody/Anonymous

     
  • Nobody/Anonymous

    Logged In: NO

    I can be reached via email at aredridel@nbtsc.org

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.