diff options
| author | Đoàn Trần Công Danh <[email protected]> | 2024-10-05 23:01:38 +0700 |
|---|---|---|
| committer | lukefromdc <[email protected]> | 2025-04-24 03:02:47 -0400 |
| commit | be855481d5618ea6e342231b0ff503b36981cdee (patch) | |
| tree | 46d00ccccf1d91a47fea9f9c8518f143098751c6 /applets/clock/clock-location-tile.c | |
| parent | f8d04498632261a2f31345347679fa33d4d15fe8 (diff) | |
| download | mate-panel-be855481d5618ea6e342231b0ff503b36981cdee.tar.bz2 mate-panel-be855481d5618ea6e342231b0ff503b36981cdee.tar.xz | |
applets/clock: Fix compatibility with musl libc
%l is an glibc extension for strftime, this extensions isn't supported
by musl libc.
Replace %l with %_I, which is functionaly equivalence.
%_I itself is also an extensions, however, %_I is supported by both
glibc, musl, FreeBSD and deriviates, AIX, and Solaris.
Fix: #1451
Diffstat (limited to 'applets/clock/clock-location-tile.c')
| -rw-r--r-- | applets/clock/clock-location-tile.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/applets/clock/clock-location-tile.c b/applets/clock/clock-location-tile.c index e9260a31..385d0da1 100644 --- a/applets/clock/clock-location-tile.c +++ b/applets/clock/clock-location-tile.c @@ -434,7 +434,7 @@ format_time (struct tm *now, * weekday differs from the weekday at the location * (the %A expands to the weekday). The %p expands to * am/pm. */ - format = _("%l:%M <small>%p (%A)</small>"); + format = _("%_I:%M <small>%p (%A)</small>"); } else { /* Translators: This is a strftime format string. @@ -451,7 +451,7 @@ format_time (struct tm *now, * It is used to display the time in 12-hours format * (eg, like in the US: 8:10 am). The %p expands to * am/pm. */ - format = _("%l:%M <small>%p</small>"); + format = _("%_I:%M <small>%p</small>"); } else { /* Translators: This is a strftime format string. @@ -497,7 +497,7 @@ convert_time_to_str (time_t now, ClockFormat clock_format) * It is used to display the time in 12-hours format (eg, like * in the US: 8:10 am). The %p expands to am/pm. */ - format = _("%l:%M %p"); + format = _("%_I:%M %p"); } else { /* Translators: This is a strftime format string. |
