Fix: Bug: Clock Only Updates Every Minute With Format %s (issue #724)

This commit is contained in:
Chris Lee
2018-12-27 08:01:11 +01:00
parent b539c0a1c0
commit cacd4b8dad
2 changed files with 9 additions and 2 deletions

View File

@@ -173,7 +173,13 @@ gboolean time_format_needs_sec_ticks(char *time_format)
{
if (!time_format)
return FALSE;
if (strchr(time_format, 'S') || strchr(time_format, 'T') || strchr(time_format, 'r'))
if (strchr(time_format, 'c') ||
strchr(time_format, 'r') ||
strchr(time_format, 's') ||
strchr(time_format, 'S') ||
strchr(time_format, 'T') ||
strchr(time_format, 'X') ||
strchr(time_format, '+'))
return TRUE;
return FALSE;
}