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 failing tests #2153

Conversation

omarkasem
Copy link
Collaborator

@omarkasem omarkasem commented Sep 26, 2024

  • Fixes Failing tests in test_format_date for human modifier #2152
  • Fixed tests that might fail because of timezones
  • The issue was that i was using GFCommon::get_local_timestamp to convert the timestamp to the local one according to current site timezone
  • Then i was comparing it using human_time_diff function which uses time() as the second argument by default which is just the regular timestamp not adjusted for the current site timezone

💾 Build file (7ad6529).

@omarkasem omarkasem linked an issue Sep 26, 2024 that may be closed by this pull request
@omarkasem omarkasem self-assigned this Sep 26, 2024
@omarkasem omarkasem requested a review from mrcasual September 26, 2024 08:44
@mrcasual mrcasual assigned mrcasual and unassigned omarkasem Sep 26, 2024
@mrcasual mrcasual merged commit 8263fd3 into develop Sep 26, 2024
2 checks passed
@mrcasual mrcasual deleted the issue/2152-failing-tests-in-test_format_date-for-human-modifier branch September 26, 2024 15:13
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.

Failing tests in test_format_date for human modifier
2 participants