mirror of
https://github.com/tstack/lnav
synced 2024-11-17 15:29:40 +00:00
[time] an epoch timestamp should not have whitespace
This commit is contained in:
parent
588231dda6
commit
7240aaa127
@ -513,7 +513,9 @@ const char *date_time_scanner::scan(const char *time_dest,
|
|||||||
this->dts_fmt_lock)) {
|
this->dts_fmt_lock)) {
|
||||||
*tm_out = this->dts_base_tm;
|
*tm_out = this->dts_base_tm;
|
||||||
tm_out->et_flags = 0;
|
tm_out->et_flags = 0;
|
||||||
if (time_dest[0] == '+') {
|
if (time_len > 1 &&
|
||||||
|
time_dest[0] == '+' &&
|
||||||
|
isdigit(time_dest[1])) {
|
||||||
char time_cp[time_len + 1];
|
char time_cp[time_len + 1];
|
||||||
int gmt_int, off;
|
int gmt_int, off;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user