Content-Length: 235767 | pFad | http://github.com/postgrespro/postgres/commit/2def4552edbe1ada5aa76954997fd3142cb7c271

AB Still another try at matching system timezone nicely. On non-Windows · postgrespro/postgres@2def455 · GitHub
Skip to content

Commit 2def455

Browse files
committed
Still another try at matching system timezone nicely. On non-Windows
machines, break tie scores by preferring shorter zone names over longer; for names of equal length, prefer the alphabetically first name. This yields for example 'EST5EDT' not 'America/New_York' for US eastern time. On Windows, abandon the whole concept of inspecting the detailed behavior of the system TZ library, because it doesn't bear inspection :-(. Instead use a hardwired mapping table to select our zone name based on the result of strftime %Z output. Windows code from Magnus Hagander.
1 parent a052cd4 commit 2def455

File tree

1 file changed

+260
-56
lines changed

1 file changed

+260
-56
lines changed

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/2def4552edbe1ada5aa76954997fd3142cb7c271

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy