diff options
author | Hans Hagen <pragma@wxs.nl> | 2021-10-28 11:38:54 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2021-10-28 11:38:54 +0200 |
commit | c0e2193b6c379b34fbc589343d31f71e02513f03 (patch) | |
tree | 78e2d71def3ce80cf233c79279dcfddaac18a523 /tex/context/base/mkiv/core-con.lua | |
parent | a23982bf3c6cc3c7e34c89a67004e2ef4c6103eb (diff) | |
download | context-c0e2193b6c379b34fbc589343d31f71e02513f03.tar.gz |
2021-10-28 10:19:00
Diffstat (limited to 'tex/context/base/mkiv/core-con.lua')
-rw-r--r-- | tex/context/base/mkiv/core-con.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tex/context/base/mkiv/core-con.lua b/tex/context/base/mkiv/core-con.lua index 289a34b0e..ea11ffcd0 100644 --- a/tex/context/base/mkiv/core-con.lua +++ b/tex/context/base/mkiv/core-con.lua @@ -2011,7 +2011,9 @@ function converters.totime(s) return s elseif type(s) == "string" then local t = lpegmatch(p,s) - if t.tzh then + if not t then + logs.report("system","invalid time specification %a",s) + elseif t.tzh then local localtzh, localtzm = ostimezone(true) t.hour = t.hour + localtzh - t.tzs * t.tzh t.min = t.min + localtzm - t.tzs * t.tzm |