asc2log::get_date check for AM in en_US time format
parent
847486083a
commit
51b1f67851
|
|
@ -384,7 +384,7 @@ static int get_date(struct timeval *tv, char *date)
|
||||||
struct tm tms;
|
struct tm tms;
|
||||||
unsigned int msecs = 0;
|
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 */
|
/* assume EN/US date due to existing am/pm field */
|
||||||
|
|
||||||
if (!setlocale(LC_TIME, "en_US")) {
|
if (!setlocale(LC_TIME, "en_US")) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue