GNOME Bugzilla – Bug 347614
Fix for Glib::Date::set_time_current
Last modified: 2006-07-16 13:55:57 UTC
The implementation of Glib::Date::set_time_current() actually sets the date to Dec 31, 1969. I can't actually get CVS to give me a diff, so I'll just explain the change here so that I remember to do it after SVN comes up: instead of passing in a null time_t variable, e.g.: g_date_set_time_t(&gobject_, time_t(0)); We should be passing in the return value of a call to time() passing in NULL, e.g.: g_date_set_time_t(&gobject_, time(NULL));
Ah, I guess I misunderstood the documentation http://developer.gnome.org/doc/API/2.0/glib/glib-Date-and-Time-Functions.html#g-date-set-time-t which says "To set the value of a date to the current day, you could write: g_date_set_time_t (date, time (NULL)); " Feel free to fix this.
Since svn migration was cancelled, CVS is now back up. committed: 2006-07-16 Jonathon Jongsma <jonathon.jongsma@gmail.com> * glib/src/date.ccg: fix implementation of Glib::Date::set_time_current() so that it doesn't set the date to Dec 31, 1969.