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

Add option to set date and time for time.Now #45178

Closed
ivanjaros opened this issue Mar 23, 2021 · 2 comments
Closed

Add option to set date and time for time.Now #45178

ivanjaros opened this issue Mar 23, 2021 · 2 comments

Comments

@ivanjaros
Copy link

It seems there is no way to globally set time and date so testing with external dependencies that make direct calls to time package is impossible. Hence why some kind of time init option should be added into main so testing can be done on applications(not libraries) that work with time, especially non-present time(ie. cron-like tasks).

@seankhliao
Copy link
Member

Duplicate of #8869

@seankhliao seankhliao marked this as a duplicate of #8869 Mar 23, 2021
@ivanjaros
Copy link
Author

no change after 7 years gives me the impression that there is no way in hell this will get fixed, ever. great.

@golang golang locked and limited conversation to collaborators Mar 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants