Skip to content

Commit

Permalink
πŸ› Delete hour offset
Browse files Browse the repository at this point in the history
  • Loading branch information
bizouarn committed Sep 12, 2022
1 parent a4e861a commit fd46056
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/status/Main.hx
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ class Main{
var timer = new haxe.Timer(config.RefreshTime); // 1000ms delay
timer.run = function() {
var date = Date.now();
trace(date.getHours(), "+" + date.getTimezoneOffset());
switch (date.getHours() + date.getTimezoneOffset()) {
trace("hour",date.getHours());
switch (date.getHours()) {
case 0, 1, 2, 3, 4, 5, 6, 7, 8, 23, 24:
publish({
emoji: 'πŸ’€',
Expand Down

0 comments on commit fd46056

Please sign in to comment.