Skip to content

scans.log (at least) is not storing time correctly #13

@johnmckerrell

Description

@johnmckerrell

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions