Skip to content

Commit

Permalink
Fix is_24h determining for sunrise/sunset
Browse files Browse the repository at this point in the history
  • Loading branch information
MarSoft committed Oct 10, 2017
1 parent d40951c commit 79bad72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/c/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ void DisplayLastUpdated(void) {

static void format_sunrise_sunset(time_t time, char *buffer, int size) {
struct tm* ltime = localtime(&time);
bool is_24 = clock_is_24h_style() && 0;
bool is_24 = clock_is_24h_style();
char *format = is_24 ? "%k:%M" : "%l:%M%p";
strftime(buffer, size, format, ltime);
// allow no more than 5 characters:
Expand Down

0 comments on commit 79bad72

Please sign in to comment.