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:
Timothy Flynn 2022-01-11 11:35:50 -05:00 committed by Linus Groh
commit 8d35563f28
Notes: sideshowbarker 2024-07-17 21:09:41 +09:00
5 changed files with 238 additions and 20 deletions

View file

@ -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)