[Tile-serving] [osm2pgsql-dev/osm2pgsql] Replace fmt::localtime with std::localtime (PR #2457)
Jochen Topf
notifications at github.com
Fri Apr 3 08:09:47 UTC 2026
joto left a comment (osm2pgsql-dev/osm2pgsql#2457)
There is a reason `fmt::localtime` was used and `not std::localtime`:
> Converts given time since epoch as std::time_t value into calendar time, expressed in local time. Unlike std::localtime, this function is thread-safe on most platforms.
_(From the fmt docs)_
[This](https://en.cppreference.com/w/c/chrono/localtime.html) shows the mess that `localtime` is on various platforms in various versions. This needs to be figured out and tested on all platforms.
--
Reply to this email directly or view it on GitHub:
https://github.com/osm2pgsql-dev/osm2pgsql/pull/2457?email_source=notifications&email_token=AA6353V6P5WOON7WI7K5ZNT4T5WUXA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTIMJYGI2DINBRGA2KM4TFMFZW63VKON2WE43DOJUWEZLEUVSXMZLOOS2XA4S7MNXW23LFNZ2F633QMVXF6Y3MNFRWW#issuecomment-4182444104
You are receiving this because you are subscribed to this thread.
Message ID: <osm2pgsql-dev/osm2pgsql/pull/2457/c4182444104 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20260403/b2b3b2e0/attachment-0001.htm>
More information about the Tile-serving
mailing list