You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While looking for a scan on the doorbots I found that they don't appear to be logging scans in the way we expect them to. The log file claims to be storing UTC times when in fact it appears to be using local time. I'm not sure where it's even getting the local time zone from but the following appears to suggest it:
94fa5964 2019-08-22 16:14:18 UTC
7b60b555 2019-08-22 20:00:46 UTC
pi@doorbot5:~/logcards $ date
Thu 22 Aug 19:08:26 UTC 2019
As you can see the last scan was apparently at 20:00 UTC, when the time is actually 19:08 UTC. To confirm this was actually at 20:08 BST/local time.
The text was updated successfully, but these errors were encountered:
# Optional timezone, used for defining half-days of hotdesking
timezone: "Europe/London"
and
time = Time.now.utc
if LCConfig.tz
time = LCConfig.tz.utc_to_local(time)
end
today = Date.today.to_s
scansFile.write("#{uid}\t#{time}\n")
Annoying that we end up stating UTC when its not so I'll leave this open to see if we can fix that. If not maybe we just make sure the scans file does store UTC.
While looking for a scan on the doorbots I found that they don't appear to be logging scans in the way we expect them to. The log file claims to be storing UTC times when in fact it appears to be using local time. I'm not sure where it's even getting the local time zone from but the following appears to suggest it:
As you can see the last scan was apparently at 20:00 UTC, when the time is actually 19:08 UTC. To confirm this was actually at 20:08 BST/local time.
The text was updated successfully, but these errors were encountered: