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

rx.timer works only with naive date object #574

Open
adsko opened this issue Jun 12, 2021 · 1 comment
Open

rx.timer works only with naive date object #574

adsko opened this issue Jun 12, 2021 · 1 comment

Comments

@adsko
Copy link

adsko commented Jun 12, 2021

The timer works only with naive datetime object. Because of it, I need to map my datetime object with offset to delta and then use it with the timer.

I think, Schedulers should check if provided object is naive or not and then use datetime.datetime.now(tz=datatime.timezone.utc) or datetime.datetime.utcnow()

@MainRo
Copy link
Collaborator

MainRo commented Jul 3, 2021

good point. Thanks your report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants