mirror of
https://github.com/qdm12/ddns-updater.git
synced 2026-08-02 10:38:41 -04:00
Bug: date-time miscalculation in "HHhMMmSSs ago" #534
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Marcool04 on GitHub (Jun 17, 2025).
TLDR: The interval provided as x in the "HHhMMmSSs ago" field can be miscalculated
On the following screenshot, notice how both the "no IP change for x" differ (and point to the correct time, see updates.json below), but "HHhMMmSSs ago" intervals are identical when they shouldn't be:
updates.json:
config.json:
Host OS: Arch linux (up to date rolling release OS).
The problem is likely in this function:
20ac110753/internal/persistence/json/database.go (L114)but I can't really see how this might happen to be honest...Thanks for the very useful little tool anyhow 👍️
Cheers,
Mark.