summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Berg <bberg@redhat.com>2021-01-11 15:05:11 +0100
committerBenjamin Berg <bberg@redhat.com>2021-01-11 19:18:18 +0100
commitaf8ab52d4f717936317426b975ded74185c39c9a (patch)
tree1a5680a338fe7ffdf15dfce6f07a5d6c20aa8565
parentfa7f7c1779e1b96f5ee01037e11bb922292b1fc0 (diff)
downloadlibgweather-benzea/wip-variant-backend.tar.gz
location: Clarify purpose of year start/end informationbenzea/wip-variant-backend
-rw-r--r--libgweather/gweather-location.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libgweather/gweather-location.c b/libgweather/gweather-location.c
index 4c69b49..7d3bb30 100644
--- a/libgweather/gweather-location.c
+++ b/libgweather/gweather-location.c
@@ -247,7 +247,8 @@ gweather_location_get_world ()
g_ptr_array_set_size (world_db->locations, db_arrayof_location_get_length (world_db->locations_ref));
g_ptr_array_set_size (world_db->timezones, db_world_timezones_get_length (world_db->timezones_ref));
- /* Get timestamps for the start and end of this year */
+ /* Get timestamps for the start and end of this year.
+ * This is used to parse timezone information. */
now = time (NULL);
tm = *gmtime (&now);
tm.tm_mon = 0;