Skip to content

Commit

Permalink
DST fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lukipuki committed Oct 31, 2023
1 parent 83fa62e commit bb9421e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/yaroc/utils/si.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import time
from abc import ABC, abstractmethod
from dataclasses import dataclass
from datetime import datetime
from datetime import datetime, timedelta
from threading import Event, Lock, Thread
from typing import AsyncIterator, Dict

Expand Down Expand Up @@ -63,6 +63,7 @@ def _worker_fn(self):
messages.append((2, card_data["finish"], FINISH_MODE))

for code, tim, mode in messages:
tim -= timedelta(hours=1)
logging.info(f"{card_number} punched {code} at {tim}, received after {now-tim}")
asyncio.run_coroutine_threadsafe(
self._queue.put(SiPunch(card_number, code, tim, mode)), self._loop
Expand Down

0 comments on commit bb9421e

Please sign in to comment.