diff options
author | Jonathon Jongsma <jonathon.jongsma@gmail.com> | 2006-07-16 13:54:02 +0000 |
---|---|---|
committer | Jonathon Jongsma <jjongsma@src.gnome.org> | 2006-07-16 13:54:02 +0000 |
commit | 0f1d4b1407013b4fa1484b9c639406a8133d829c (patch) | |
tree | f953fc552ef3d347da37256d891dd3e079b73f53 | |
parent | 76188d3690a992d6a980a9daa5e8e8d5f1442107 (diff) | |
download | glibmm-0f1d4b1407013b4fa1484b9c639406a8133d829c.tar.gz |
fix implementation of Glib::Date::set_time_current() so that it doesn't
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.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | glib/src/date.ccg | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +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. + 2006-06-19 Murray Cumming <murrayc@murrayc.com> * glib/glibmm/object.h: Check whether DestroyNotify is defined, so we can warn about diff --git a/glib/src/date.ccg b/glib/src/date.ccg index b59810ab..47b6fdd5 100644 --- a/glib/src/date.ccg +++ b/glib/src/date.ccg @@ -81,7 +81,7 @@ void Date::set_time(time_t timet) void Date::set_time_current() { //As suggested in the C documentation: - g_date_set_time_t(&gobject_, time_t(0)); + g_date_set_time_t(&gobject_, time(NULL)); } void Date::set_time(const GTimeVal& timeval) |