diff options
author | Adrian C. (anrxc) <anrxc@sysphere.org> | 2009-10-04 00:06:05 +0200 |
---|---|---|
committer | Adrian C. (anrxc) <anrxc@sysphere.org> | 2009-10-04 15:57:24 +0200 |
commit | 4d869a90dbd476305b09ed87e1614690913e4678 (patch) | |
tree | f81666b414f2b97f54e0e94588beffa4bc07cb0a /date.lua | |
parent | bdc31d01fe9486fee73ec2d49b6cd89380ef7b3d (diff) | |
download | vicious-legacy-4d869a90dbd476305b09ed87e1614690913e4678.tar.xz |
date: function simplified
Diffstat (limited to 'date.lua')
-rw-r--r-- | date.lua | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -16,11 +16,7 @@ module("vicious.date") -- {{{ Date widget type local function worker(format) - if format == nil then - return os.date() - else - return os.date(format) - end + return os.date(format or nil) end -- }}} |