summaryrefslogtreecommitdiff
path: root/ts
diff options
context:
space:
mode:
authorPeter Lunicks <plunix@users.sourceforge.net>2013-03-26 22:50:17 +0000
committerJoey Hess <joey@kitenet.net>2013-03-27 11:47:07 -0400
commit2f3cfb73023da1a57cdc397e86e10163ebe9cb38 (patch)
tree294407f1284a846bb73c69c05bd5a44bf9446cda /ts
parentd87032d88689177d6d1bae551fe21527d7df93f6 (diff)
downloadmoreutils-2f3cfb73023da1a57cdc397e86e10163ebe9cb38.tar.gz
fix for syslog-style single-digit day dates, e.g. 'Feb 3'
Diffstat (limited to 'ts')
-rwxr-xr-xts2
1 files changed, 1 insertions, 1 deletions
diff --git a/ts b/ts
index 7e3fd06..feda6fd 100755
--- a/ts
+++ b/ts
@@ -133,7 +133,7 @@ while (<>) {
(?::\d\d)? # (optional seconds)
(?:\s+[+-]\d\d\d\d)? # (optional timezone)
|
- \w{3}\s+\d\d\s+\d\d:\d\d:\d\d # syslog form
+ \w{3}\s+\d{1,2}\s+\d\d:\d\d:\d\d # syslog form
|
\d\d\d[-:]\d\d[-:]\d\dT\d\d:\d\d:\d\d.\d+ # ISO-8601
|