This repository was archived by the owner on Jan 23, 2026. It is now read-only.
Adjust defaults for 'timestop' and search query.#250
Merged
michsmit99 merged 1 commit intodatacenter:masterfrom Nov 10, 2016
Merged
Adjust defaults for 'timestop' and search query.#250michsmit99 merged 1 commit intodatacenter:masterfrom
michsmit99 merged 1 commit intodatacenter:masterfrom
Conversation
Adjusted query to use timestop is null to get correct data.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I encountered errors with endpointtracker deploying tables to a new DB, which results from an error:
The value of '0000-00-00 00:00:00' is not according to MySQL docs a valid range of timestamps, but is considered the "zero" value when an invalid value type tries to be converted to timestamp.
As seen by issue #196 under a new deployment the database table fails to create. After looking over the code it seems like the value of '0000-00-00 00:00:00' is used like a null type.
This fix changes the default for timestop to use null and then the queries to look for 'is null' instead. This allows the table to create and function as expected.
No changes to the gui were needed as it already looks for records with "None" or null and converts them in display to '0000-00-00 00:00:00'.
I'm up for doing this different, this way just seems to work from what I can tell in the code.