[libgweather/benzea/wip-variant-backend: 3/3] location: Clarify purpose of year start/end information
- From: Benjamin Berg <bberg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgweather/benzea/wip-variant-backend: 3/3] location: Clarify purpose of year start/end information
- Date: Mon, 11 Jan 2021 18:19:07 +0000 (UTC)
commit af8ab52d4f717936317426b975ded74185c39c9a
Author: Benjamin Berg <bberg redhat com>
Date: Mon Jan 11 15:05:11 2021 +0100
location: Clarify purpose of year start/end information
libgweather/gweather-location.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/libgweather/gweather-location.c b/libgweather/gweather-location.c
index 4c69b492..7d3bb30b 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]