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

timestamp files support #78

Merged
merged 1 commit into from
May 5, 2024

Conversation

azmeuk
Copy link
Contributor

@azmeuk azmeuk commented May 1, 2024

This PR depends on #75.
Il also fixes #70.

It adds a new parameter timestamp_file to fake_time. When passed, the date is written in this file, and the FAKETIME_TIMESTAMP_FILE environment variable is used instead of FAKETIME.

It also allows to not pass datetime_spec to fake_time when timestamp_file is passed, so the time value is simply read from the file.

@azmeuk azmeuk force-pushed the issue-70-timestamp-file branch from 353d6bd to 5d7bf9a Compare May 1, 2024 16:07
@azmeuk azmeuk force-pushed the issue-70-timestamp-file branch from 5d7bf9a to aeab305 Compare May 5, 2024 15:12
@simon-weber
Copy link
Owner

looks good!

@simon-weber simon-weber merged commit aa13def into simon-weber:master May 5, 2024
40 checks passed
@azmeuk azmeuk deleted the issue-70-timestamp-file branch May 5, 2024 15:16
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.

Support for FAKETIME_TIMESTAMP_FILE
2 participants