totp update

This commit is contained in:
RogueMaster
2022-10-10 17:05:26 -04:00
parent cf3be2b8fc
commit 68a8cbea2a
59 changed files with 78 additions and 371 deletions

View File

@@ -1,16 +0,0 @@
#include "timezone_utils.h"
int32_t timezone_offset_from_hours(float hours) {
return hours * 3600.0f;
}
uint64_t timezone_offset_apply(uint64_t time, int32_t offset) {
uint64_t for_time_adjusted;
if (offset > 0) {
for_time_adjusted = time - offset;
} else {
for_time_adjusted = time + (-offset);
}
return for_time_adjusted;
}