1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-06-30 03:56:45 +02:00

create empty config file if none found && make default time 24 hours

This commit is contained in:
Jfreegman
2014-04-07 18:16:38 -04:00
parent 5976d33fef
commit de3a28c6e6
5 changed files with 11 additions and 8 deletions

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_24 ? "[%H:%M:%S] " : "[%I:%M:%S %p] ";
const char *t = user_settings->time == TIME_12 ? "[%I:%M:%S %p] " : "[%H:%M:%S] ";
strftime(buf, TIME_STR_SIZE, t, get_time());
}