mirror of
https://github.com/linux-can/can-utils.git
synced 2026-08-05 06:20:00 +02:00
asc2log::get_date check for AM in en_US time format
This commit is contained in:
@@ -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")) {
|
||||
|
||||
Reference in New Issue
Block a user