From 30646c31454cb3effc7bba66ae74f0a4a708ebe0 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Wed, 17 Aug 2016 09:07:44 +0100 Subject: Time: Micro-optimisation: Put GMT first in timezone list. --- utils/time.c | 8 +++++--- 1 file 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, -- cgit v1.2.3