Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit 96c75d8

Browse files
committed
Fix sstime()
Had wrong offset.
1 parent 5a37e6a commit 96c75d8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/General.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,11 +217,12 @@ end
217217
* Returns the current time of day, in seconds, on CET timezone.
218218
*
219219
* @since 0.1.0
220+
* @modified 1.0.2
220221
*
221222
* @returns {number} - CET time of day in seconds
222223
--]]
223224
function cettime()
224-
return tosec(os.date('!%X')) - tern(math.abs(os.date('*t').yday - 187) < 46, 7200, 3600)
225+
return tosec(os.date('!%X')) + tern(math.abs(os.date('*t').yday - 187) < 46, 7200, 3600)
225226
end
226227

227228
--[[

0 commit comments

Comments
 (0)