Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raise an exception when timestamp is malformed #152

Merged
merged 1 commit into from
Feb 21, 2023

Conversation

craiglittle
Copy link
Collaborator

Previously, when a provided timestamp didn't match the regex format, it would be configured as nil. This was nonsensical since a nil timestamp is unusable, which allowed for subtle bugs to creep in.

Instead, we should alert the user as soon as an improper timestamp is encountered by raising an informative exception.

The documentation has also been updated to reflect the expectations for tiemstamp format.

Fixes #140.

/cc @oelmekki

Previously, when a provided timestamp didn't match the regex format, it
would be configured as `nil`. This was nonsensical since a `nil`
timestamp is unusable, which allowed for subtle bugs to creep in.

Instead, we should alert the user as soon as an improper timestamp is
encountered by raising an informative exception.

The documentation has also been updated to reflect the expectations for
tiemstamp format.

Fixes #140.
@craiglittle craiglittle merged commit d6196cd into master Feb 21, 2023
@craiglittle craiglittle deleted the craig/hours-handling branch February 21, 2023 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants