From f0d7b0fcff57ff766b9882d4b11d79c9e478c3bc Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Sat, 24 Nov 2012 14:51:19 +0100 Subject: [PATCH] shared: FORMAT_TIMESTAMP_MAX -- include space for unicode weekdays MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit $ LANG=el_GR.UTF-8 ./timedatectl Local time: Σαβ 2012-11-24 14:53:05 CET Universal time: Σαβ 2012-11-24 13:53:05 UTC RTC time: Σαβ 2012-11-24 13:53:04 Timezone: Europe/Berlin (CET, +0100) NTP enabled: yes NTP synchronized: yes RTC in local TZ: no DST active: no Last DST change: DST ended at Κυρ 2012-10-28 02:59:59 CEST Κυρ 2012-10-28 02:00:00 CET Next DST change: DST begins (the clock jumps one hour forward) at Κυρ 2013-03-31 01:59:59 CET Κυρ 2013-03-31 03:00:00 CEST https://bugs.freedesktop.org/show_bug.cgi?id=57470 --- src/shared/time-util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/time-util.h b/src/shared/time-util.h index 4017b57d2..7194875ec 100644 --- a/src/shared/time-util.h +++ b/src/shared/time-util.h @@ -53,7 +53,7 @@ typedef struct dual_timestamp { #define USEC_PER_YEAR (31557600ULL*USEC_PER_SEC) #define NSEC_PER_YEAR (31557600ULL*NSEC_PER_SEC) -#define FORMAT_TIMESTAMP_MAX (6+11+9+4+1) +#define FORMAT_TIMESTAMP_MAX ((4*4+1)+11+9+4+1) /* weekdays can be unicode */ #define FORMAT_TIMESTAMP_RELATIVE_MAX 256 #define FORMAT_TIMESPAN_MAX 64 -- 2.30.2