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

Support for the RU date format #46

Merged
merged 8 commits into from
Nov 3, 2024
Merged

Conversation

rturovtsev
Copy link
Contributor

Add support:

15 января 2024
25 июля
10 февраля 2024 в 9:30
31.12.2023 23:59
31.12.2023

@rturovtsev rturovtsev requested a review from olebedev as a code owner October 29, 2024 15:31
Copy link
Owner

@olebedev olebedev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thank you 👍

Copy link
Owner

@olebedev olebedev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, sorry, the tests seems broken. Please fix the errors.

Happy to have another look, let me know when you're ready.

@rturovtsev rturovtsev requested a review from RexSkz as a code owner October 30, 2024 08:26
@rturovtsev
Copy link
Contributor Author

I'm sorry, I corrected the tests

@rturovtsev rturovtsev requested a review from olebedev October 31, 2024 06:40
Comment on lines -13 to -14
// current is Monday
now := time.Now()
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this is occasional, right? If so, can you please move it back

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have restored the changes, although with this version, my tests in zh/casual_date_test are currently not

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that the reversion may have been a mistake, as my tests are not passing in zh/casual_date_test. Could we consider removing the reversion to ensure the tests function

Copy link
Collaborator

@RexSkz RexSkz Oct 31, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rturovtsev I looked into it and found that it is a bug. You can remove this line safely :)

I'm not sure why the original author in PR #30 added this line, but it is this line that fails the test.

The function zh_test.ApplyFixtures uses the time 2022/03/14 00:00:00 UTC as now, but this line uses a new variable that shadows it. We are now in 2024, a leap year, so the result is 86,400 seconds more than "expected" (in the year 2022). 😂

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rturovtsev, then ca you please remove this line then so all the test are passing.

@RexSkz, thanks for clarification, I was not too sure what is going on on that side of the project. I should have noticed this earlier, my bad.

Copy link
Collaborator

@RexSkz RexSkz Nov 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@olebedev Hi! Can you tell me if there are plans to create a new release?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi there, no plans whatsoever, but I will roll this change out as a new tag soon-ish, in a matter of one or two days, bear with me.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you =)

@rturovtsev rturovtsev requested a review from olebedev October 31, 2024 10:12
@olebedev olebedev merged commit 987a8ee into olebedev:master Nov 3, 2024
3 checks passed
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.

3 participants