diff options
Diffstat (limited to 'aconf')
-rw-r--r-- | aconf/model/time.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/aconf/model/time.lua b/aconf/model/time.lua index ca6008d..099a819 100644 --- a/aconf/model/time.lua +++ b/aconf/model/time.lua @@ -25,6 +25,7 @@ M.Timestamp.format = M.Date.format..' '..M.Time.format function M.Timestamp:_offset(value) if not value then return end + if type(value) == 'number' then return value end local time = posix.strptime(value, self.format) return time and os.time(time) end |