Skip to content
This repository was archived by the owner on Jun 22, 2023. It is now read-only.

Fix date going back if ElapsedTime overflows - #3

Open
ShadowGry wants to merge 1 commit into
hbk-world:masterfrom
ShadowGry:fix-date-if-elapsed-time-overflows
Open

Fix date going back if ElapsedTime overflows#3
ShadowGry wants to merge 1 commit into
hbk-world:masterfrom
ShadowGry:fix-date-if-elapsed-time-overflows

Conversation

@ShadowGry

Copy link
Copy Markdown

On some sound level meters, the ElapsedTime sequence overflows only after reaching 86,400 seconds (24 hours). If lastTime is formatted to show the date, then it will suddenly change back to the date of when the stream was started when overflow occurs.

When this happens, the StartTime sequence is updated to the current time. It can be used with the overflowed values of the ElapsedTime sequence to always get the correct date. Removing the condition that __startTime can only be set once achieves this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant