mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-21 08:48:57 +00:00
LibUnicode: Implement TR-35's localized GMT offset formatting
This adds an API to use LibTimeZone to convert a time zone such as "America/New_York" to a GMT offset string like "GMT-5" (short form) or "GMT-05:00" (long form).
This commit is contained in:
parent
6409900a5b
commit
8d35563f28
Notes:
sideshowbarker
2024-07-17 21:09:41 +09:00
Author: https://github.com/trflynn89
Commit: 8d35563f28
Pull-request: https://github.com/SerenityOS/serenity/pull/11813
Reviewed-by: https://github.com/linusg ✅
5 changed files with 238 additions and 20 deletions
|
@ -16,7 +16,7 @@ set(SOURCES
|
|||
)
|
||||
|
||||
serenity_lib(LibUnicode unicode)
|
||||
target_link_libraries(LibUnicode LibCore)
|
||||
target_link_libraries(LibUnicode LibCore LibTimeZone)
|
||||
target_compile_definitions(LibUnicode PRIVATE ENABLE_UNICODE_DATA=$<BOOL:${ENABLE_UNICODE_DATABASE_DOWNLOAD}>)
|
||||
|
||||
if (DEFINED UNICODE_DATA_SOURCES)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue