asc2log::get_date check for AM in en_US time format

pull/547/head
vuquangtrong 2024-06-12 13:48:53 +07:00 committed by GitHub
parent 847486083a
commit 51b1f67851
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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")) {