Tune time zone 0

* src/editfns.c (tzlookup): Treat time zone 0 like t, for speed.
Suggested by Valery Ushakov (Bug#30738#19).
This commit is contained in:
Paul Eggert 2018-03-19 13:29:22 -07:00
parent 7ff62ed221
commit 7a7ee53dbd

View file

@ -147,7 +147,7 @@ tzlookup (Lisp_Object zone, bool settz)
if (NILP (zone))
return local_tz;
else if (EQ (zone, Qt))
else if (EQ (zone, Qt) || EQ (zone, make_number (0)))
{
zone_string = "UTC0";
new_tz = utc_tz;