Skip to content

Commit

Permalink
Merge pull request linux-can#547 from vuquangtrong/master
Browse files Browse the repository at this point in the history
asc2log::get_date check for AM in en_US time format
  • Loading branch information
marckleinebudde authored Jun 12, 2024
2 parents 8474860 + 51b1f67 commit 4eb72fd
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 4eb72fd

Please sign in to comment.