From a70e19a51423b855b9da8d7f9ed40d396a534c67 Mon Sep 17 00:00:00 2001 From: rbuj Date: Mon, 20 Jan 2020 16:00:37 +0100 Subject: Fix year 2038 issue with signed 32-bit integers GTime is defined to always be a signed 32-bit integer, it will overflow in the year 2038. --- libdocument/ev-annotation.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libdocument/ev-annotation.c') diff --git a/libdocument/ev-annotation.c b/libdocument/ev-annotation.c index 41bd4249..03fe925c 100644 --- a/libdocument/ev-annotation.c +++ b/libdocument/ev-annotation.c @@ -454,7 +454,7 @@ ev_annotation_get_modified (EvAnnotation *annot) * @modified: string with the last modification date. * * Set the last modification date of @annot to @modified. To - * set the last modification date using a #GTime, use + * set the last modification date using a #gint64, use * ev_annotation_set_modified_from_time() instead. You can monitor * changes to the last modification date by connecting to the * notify::modified signal on @annot. @@ -482,7 +482,7 @@ ev_annotation_set_modified (EvAnnotation *annot, /** * ev_annotation_set_modified_from_time: * @annot: an #EvAnnotation - * @utime: a #GTime + * @utime: a #gint64 * * Set the last modification date of @annot to @utime. You can * monitor changes to the last modification date by connectin to the @@ -493,7 +493,7 @@ ev_annotation_set_modified (EvAnnotation *annot, */ gboolean ev_annotation_set_modified_from_time (EvAnnotation *annot, - GTime utime) + gint64 utime) { gchar *modified; -- cgit v1.2.1