1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-06-20 15:06:36 +02:00

remove leading 0 and am/pm for 12 hour timestamp in chat windows

This commit is contained in:
Jfreegman
2014-04-08 02:50:56 -04:00
parent de3a28c6e6
commit cd0bccfbeb

View File

@ -59,7 +59,7 @@ struct tm *get_time(void)
void get_time_str(uint8_t *buf) void get_time_str(uint8_t *buf)
{ {
const char *t = user_settings->time == TIME_12 ? "[%I:%M:%S %p] " : "[%H:%M:%S] "; const char *t = user_settings->time == TIME_12 ? "[%-I:%M:%S] " : "[%H:%M:%S] ";
strftime(buf, TIME_STR_SIZE, t, get_time()); strftime(buf, TIME_STR_SIZE, t, get_time());
} }