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:
parent
de3a28c6e6
commit
cd0bccfbeb
@ -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());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user