aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/cal-util
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/cal-util')
-rw-r--r--calendar/cal-util/timeutil.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/calendar/cal-util/timeutil.c b/calendar/cal-util/timeutil.c
index 2f9156a6f5..f887a8df37 100644
--- a/calendar/cal-util/timeutil.c
+++ b/calendar/cal-util/timeutil.c
@@ -109,7 +109,8 @@ time_add_minutes (time_t time, int minutes)
tm->tm_min += minutes;
if ((new_time = mktime (tm)) == -1){
- g_warning ("mktime could not handling adding a day with\n");
+ g_message ("time_add_minutes(): mktime() could not handle "
+ "adding %d minutes with\n", minutes);
print_time_t (time);
return time;
}
@@ -135,7 +136,8 @@ time_add_day (time_t time, int days)
tm->tm_mday += days;
if ((new_time = mktime (tm)) == -1){
- g_warning ("mktime could not handling adding a day with\n");
+ g_message ("time_add_day(): mktime() could not handling adding %d days with\n",
+ days);
print_time_t (time);
return time;
}
@@ -173,7 +175,8 @@ time_add_month (time_t time, int months)
tm->tm_mon += months;
tm->tm_isdst = -1;
if ((new_time = mktime (tm)) == -1){
- g_warning ("mktime could not handling adding a month with\n");
+ g_message ("time_add_month(): mktime() could not handling adding %d months with\n",
+ months);
print_time_t (time);
return time;
}
@@ -195,7 +198,8 @@ time_add_year (time_t time, int years)
tm->tm_year += years;
if ((new_time = mktime (tm)) == -1){
- g_warning ("mktime could not handling adding a year with\n");
+ g_message ("time_add_year(): mktime() could not handling adding %d years with\n",
+ years);
print_time_t (time);
return time;
}
@@ -249,6 +253,7 @@ time_from_day (int year, int month, int day)
tm.tm_year = year - 1900;
tm.tm_mon = month;
tm.tm_mday = day;
+ tm.tm_isdst = -1;
return mktime (&tm);
}
@@ -329,6 +334,7 @@ time_week_begin (time_t t)
tm.tm_min = 0;
tm.tm_sec = 0;
tm.tm_mday -= tm.tm_wday;
+ tm.tm_isdst = -1;
return mktime (&tm);
}
@@ -345,6 +351,7 @@ time_week_end (time_t t)
tm.tm_min = 0;
tm.tm_sec = 0;
tm.tm_mday += 7 - tm.tm_wday;
+ tm.tm_isdst = -1;
return mktime (&tm);
}
-1/+1 * Update to GNOME 2.4.0. For all the goodies on what's changed, known issues,marcus2003-09-181-1/+1 * Update to 2.2.4.marcus2003-05-131-1/+1 * Update to 2.2.3.marcus2003-04-181-1/+1 * * Update to 2.2.2marcus2003-04-161-1/+1 * * Update to 2.2.1marcus2003-03-041-1/+1 * Update to GNOME 2.2.marcus2003-02-081-1/+1 * Update to 2.0.3.marcus2002-11-201-1/+1 * Update to 2.0.2.marcus2002-08-241-1/+1 * Update to 2.0.1.marcus2002-08-071-1/+1 * Update to the latest GNOME 2 snapshot.marcus2002-06-121-1/+1 * Update libgtkhtml to 1.99.7 after a repo-copy from ports/www/gtkhtml andsobomax2002-05-211-1/+1 * Update to 1.0.2.sobomax2002-03-261-1/+1 * Update to 1.0.1.sobomax2002-01-141-1/+1 * Update to 1.0.0.sobomax2001-12-051-1/+1 * Update to 0.16.1.sobomax2001-11-201-1/+1 * Update to 0.16.0.sobomax2001-11-101-1/+1 * Update to 0.14.0.sobomax2001-10-091-1/+1 * Update to 0.13.0.sobomax2001-10-011-1/+1 * Update to 0.12.0.sobomax2001-09-111-1/+1 * Update to 0.11.1.sobomax2001-08-031-1/+1 * Update to 0.10.0.sobomax2001-07-231-1/+1 * The new GNOME 1.4 "Fifth-Toe" metaport, bringing together a wholeade2001-05-051-1/+1 * Update to 0.8.2ade2001-01-311-1/+1 * Update to 0.8.1ade2001-01-261-1/+1 * Update to 0.8ade2000-12-161-1/+1 * Update to 0.7ade2000-10-211-1/+1 * Update to 0.6.1ade2000-08-181-1/+1 * Update to 0.5ade2000-07-121-1/+1