summaryrefslogtreecommitdiff
path: root/gtk/gtkcalendar.c
diff options
context:
space:
mode:
authorNiels De Graef <nielsdegraef@gmail.com>2021-10-12 19:37:13 +0200
committerNiels De Graef <nielsdegraef@gmail.com>2021-10-12 19:37:13 +0200
commit41ca09d645bed5b1c3440c4fcbf56a3a1f1535ee (patch)
tree16570aa79f6fefaafc52d8ffb8f53fe237039f6a /gtk/gtkcalendar.c
parentdcbfd61558b73e1ee1adc02f76e25cb6bc7e5d4a (diff)
downloadgtk+-41ca09d645bed5b1c3440c4fcbf56a3a1f1535ee.tar.gz
calendar: Add an explanatory comment
On the magic numbers used to get the abbreviated day names.
Diffstat (limited to 'gtk/gtkcalendar.c')
-rw-r--r--gtk/gtkcalendar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkcalendar.c b/gtk/gtkcalendar.c
index fe75e7beaf..d24d58fb9c 100644
--- a/gtk/gtkcalendar.c
+++ b/gtk/gtkcalendar.c
@@ -684,7 +684,7 @@ gtk_calendar_init (GtkCalendar *calendar)
for (i=0; i<7; i++)
{
#ifndef G_OS_WIN32
- tmp_time= (i+3)*86400;
+ tmp_time= (i+3)*86400; /* epoch was a Thursday, so add 3 days for Sunday */
strftime (buffer, sizeof (buffer), "%a", gmtime (&tmp_time));
default_abbreviated_dayname[i] = g_locale_to_utf8 (buffer, -1, NULL, NULL, NULL);
#else