Time: Micro-optimisation: Put GMT first in timezone list.

This commit is contained in:
Michael Drake 2016-08-17 09:07:44 +01:00
parent 72277de6ea
commit 30646c3145

View File

@ -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,