1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-13 01:53:01 +01: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
No known key found for this signature in database
GPG Key ID: 3627F3144076AE63

View File

@ -59,7 +59,7 @@ struct tm *get_time(void)
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());
}