diff options
| author | Paul Eggert | 2018-03-19 13:29:22 -0700 |
|---|---|---|
| committer | Paul Eggert | 2018-03-19 13:30:41 -0700 |
| commit | 7a7ee53dbdcf489050653f04ba3d0c491245c5fa (patch) | |
| tree | 610705a97c2d544ee98a389944a55f2c47b5cdb1 /src | |
| parent | 7ff62ed221cc712bb2e310917dd303594f68a625 (diff) | |
| download | emacs-7a7ee53dbdcf489050653f04ba3d0c491245c5fa.tar.gz emacs-7a7ee53dbdcf489050653f04ba3d0c491245c5fa.zip | |
Tune time zone 0
* src/editfns.c (tzlookup): Treat time zone 0 like t, for speed.
Suggested by Valery Ushakov (Bug#30738#19).
Diffstat (limited to 'src')
| -rw-r--r-- | src/editfns.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/editfns.c b/src/editfns.c index d26319441b3..cb7353a48c6 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -147,7 +147,7 @@ tzlookup (Lisp_Object zone, bool settz) | |||
| 147 | 147 | ||
| 148 | if (NILP (zone)) | 148 | if (NILP (zone)) |
| 149 | return local_tz; | 149 | return local_tz; |
| 150 | else if (EQ (zone, Qt)) | 150 | else if (EQ (zone, Qt) || EQ (zone, make_number (0))) |
| 151 | { | 151 | { |
| 152 | zone_string = "UTC0"; | 152 | zone_string = "UTC0"; |
| 153 | new_tz = utc_tz; | 153 | new_tz = utc_tz; |