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 00:06:05 +0200 |
commit | 643ecb02874fd477d68fe01f2d3dd053bf079669 (patch) | |
tree | e584d6b81eae8147d67b116c01a25396350082d5 | |
parent | 3d97d44a02cf56a8db609ab16ac0a42db88f08ef (diff) | |
download | vicious-legacy-643ecb02874fd477d68fe01f2d3dd053bf079669.tar.xz |
date: function simplified
-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 -- }}} |