1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-04 08:43:13 +02:00

core: add support of specifier %@ for UTC time in function util_strftimeval

This commit is contained in:
Sébastien Helleu
2025-05-18 22:15:06 +02:00
parent 8a024dddad
commit 2f375b652b
8 changed files with 53 additions and 20 deletions
+5
View File
@@ -185,6 +185,11 @@ TEST(CoreUtil, Strftimeval)
"%H:%M:%S", &tv));
STRCMP_EQUAL("10:29:09", str_time);
strcpy (str_time, "test");
LONGS_EQUAL(8, util_strftimeval (str_time, sizeof (str_time),
"%@%H:%M:%S", &tv));
STRCMP_EQUAL("10:29:09", str_time);
strcpy (str_time, "test");
LONGS_EQUAL(19, util_strftimeval (str_time, sizeof (str_time),
"%Y-%m-%d %H:%M:%S", &tv));