# HG changeset patch # User jbe # Date 1512083796 -3600 # Node ID 6dec66f8d48e06991280ce90df43459b8090a89d # Parent f87175f57591d2626d4e3c7808a6e2960ed50d59 Fix in format.timestamp(...): deal with options set to nil diff -r f87175f57591 -r 6dec66f8d48e framework/env/format/timestamp.lua --- a/framework/env/format/timestamp.lua Sun Nov 26 16:10:45 2017 +0100 +++ b/framework/env/format/timestamp.lua Fri Dec 01 00:16:36 2017 +0100 @@ -14,7 +14,7 @@ function format.timestamp(value, options) if value == nil then - return options.nil_as or "" + return options and options.nil_as or "" end return format.date(value, options) .. " " .. format.time(value, options) end