Skip to content

Conversation

@keith-lky
Copy link

Description

This PR fixes a timezone-related bug in the Python test specification that could cause issues when comparing commit timestamps across different timezones.

Changes

  • Replace %ci (formatted date with timezone) with %ct (Unix timestamp) in git show commands
  • Use numeric comparison instead of string comparison for timestamps
  • Simplify date arithmetic using Unix epoch time instead of date -d
  • Change --since to --after parameter for git log with timestamp

Impact

This eliminates potential timezone-related issues when comparing commit times during repository setup, ensuring consistent behavior regardless of the system's timezone configuration.

Testing

The changes maintain the same logical behavior while using more robust timestamp handling.

- Replace %ci (formatted date with timezone) with %ct (Unix timestamp)
- Use numeric comparison instead of string comparison for timestamps
- Simplify date arithmetic using Unix epoch time instead of date -d
- Change --since to --after parameter for git log with timestamp

This fixes potential timezone-related issues when comparing commit times.
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.

1 participant