fix: timezone issue

This commit is contained in:
Tobias Reisinger 2020-05-07 01:41:16 +02:00
parent ad7a6028b3
commit 27cec1d8cc
10 changed files with 27 additions and 28 deletions
include/models

View file

@ -14,6 +14,6 @@ period_t*
period_create(uint16_t start, uint16_t end);
int
period_includes_time(period_t *period, uint16_t timestamp);
period_includes_time(period_t *period, struct tm *time_struct);
#endif /* CONTROLLER_PERIOD_H */

View file

@ -51,7 +51,7 @@ int
relay_save(relay_t *relay, MDB_env *mdb_env);
int
relay_is_active(relay_t *relay, time_t timestamp_now);
relay_is_active(relay_t *relay, struct tm *time_struct);
void
relay_free(relay_t *relay);