Skip to content

Commit

Permalink
asc2log::get_date check for AM in en_US time format
Browse files Browse the repository at this point in the history
  • Loading branch information
vuquangtrong authored Jun 12, 2024
1 parent 8474860 commit 51b1f67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion asc2log.c
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ static int get_date(struct timeval *tv, char *date)
struct tm tms;
unsigned int msecs = 0;

if (strcasestr(date, " pm ") != NULL) {
if ((strcasestr(date, " am ") != NULL) || (strcasestr(date, " pm ") != NULL)) {
/* assume EN/US date due to existing am/pm field */

if (!setlocale(LC_TIME, "en_US")) {
Expand Down

0 comments on commit 51b1f67

Please sign in to comment.