diff options
author | Adrian C. (anrxc) <anrxc@sysphere.org> | 2010-10-04 22:42:31 +0200 |
---|---|---|
committer | Adrian C. (anrxc) <anrxc@sysphere.org> | 2010-10-04 22:42:31 +0200 |
commit | e51d8ac39e67fdbd5ce26c024f1a85497dc7bc86 (patch) | |
tree | 9786249e6b1361655a442146c71c3653cc9d1b6c /init.lua | |
parent | c6085eef0648f54e1c70c92c544a89d9bb3d22c2 (diff) | |
download | vicious-legacy-e51d8ac39e67fdbd5ce26c024f1a85497dc7bc86.tar.xz |
date: turn time widget argument into an offset
The os.time() call should not be passed as an argument it self,
because of a chance it will be stored internally and so we would
always get the same time. Instead we can pass time offsets in seconds,
i.e. to go 6 hours forward we can use the widget argument 21600, to go
6 hours back we use -21600 instead.
Diffstat (limited to 'init.lua')
0 files changed, 0 insertions, 0 deletions