summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2016-08-17 09:07:44 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2016-08-17 09:07:44 +0100
commit30646c31454cb3effc7bba66ae74f0a4a708ebe0 (patch)
treea72783a296e6eac2dc37c349acc170b283a38728 /utils
parent72277de6ead1324bbd7fa512e772d92e1f4b0951 (diff)
downloadnetsurf-30646c31454cb3effc7bba66ae74f0a4a708ebe0.tar.gz
netsurf-30646c31454cb3effc7bba66ae74f0a4a708ebe0.tar.bz2
Time: Micro-optimisation: Put GMT first in timezone list.
Diffstat (limited to 'utils')
-rw-r--r--utils/time.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/utils/time.c b/utils/time.c
index 14f4004b9..71fa30fe3 100644
--- a/utils/time.c
+++ b/utils/time.c
@@ -282,10 +282,13 @@ enum nsc_time_zone_offsets {
/**
* List of timezones.
*
- * The order here is the order they appear in the `timezone_mins` array.
- * So there is value in putting the most common timezones first.
+ * The order here is the order they appear in the `timezone_mins` and
+ * `timezones` arrays. So there is value in putting the most common
+ * timezones first.
*/
enum nsc_time_zones {
+ /** "GMT" first since its the only one I've seen in the wild. -- tlsa */
+ NSC_TIME_ZONE_GMT,
NSC_TIME_ZONE_IDLE,
NSC_TIME_ZONE_NZST,
NSC_TIME_ZONE_NZT,
@@ -299,7 +302,6 @@ enum nsc_time_zones {
NSC_TIME_ZONE_FWT,
NSC_TIME_ZONE_MET,
NSC_TIME_ZONE_MEWT,
- NSC_TIME_ZONE_GMT,
NSC_TIME_ZONE_UTC,
NSC_TIME_ZONE_WET,
NSC_TIME_ZONE_WAT,