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

fix: allow for positive or negative offset time zones #842

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Xel-Naha
Copy link

Description

When testing ANTA logging format on switches with timezone Europe/London we got fail on the test VerifyLoggingTimestamp. Looking at the regex it seems to match on negative offsets:

r"\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{6}-d{2}:\d{2}"

-d{2}:\d{2}"

to allow for positive offsets change this to allow either negative - or positive +

[+-]d{2}:\d{2}"

Copy link

sonarcloud bot commented Sep 30, 2024

@Xel-Naha Xel-Naha changed the title allow for positive or negative offset time zones fix: allow for positive or negative offset time zones Sep 30, 2024
@gmuloc
Copy link
Collaborator

gmuloc commented Sep 30, 2024

Hello @Xel-Naha thanks for opening this PR - could you please look at adding some test to make sure we capture this in our CI? If you need pointers let me know!

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