leosac / access-control

Leosac Access Control - Open Source Physical Access Control System
https://leosac.com
GNU Affero General Public License v3.0
242 stars 40 forks source link

ValidityInfo object in SQLite #85

Closed xaqq closed 7 years ago

xaqq commented 7 years ago

Storage of ValidityInfo (and underlying std::time_point) is broken when using SQLite. It seems to be stored properly (as TEXT) but takes an unexpected value when loading it from the database.

As a result, default account can't be logged on because they are considered out of their validity period.