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

Inconsistent use of Time.now in ActiveSupport and Time.current in rails_performance #94

Open
MikhailVerbitski opened this issue Oct 14, 2024 · 1 comment

Comments

@MikhailVerbitski
Copy link

ActiveSupport uses Time.now, which returns the system time without taking into account the Rails application's time zone when the request is completed:
Screenshot 2024-10-15 at 01 26 28

Thus, the data in the redis is created with local time.

However, when reading data from the redis, Time.current is used, which makes the data completely unavailable for a certain period of time around midnight, depending on your time zone:
Screenshot 2024-10-15 at 01 28 14

@MikhailVerbitski
Copy link
Author

MikhailVerbitski commented Oct 16, 2024

#95

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

No branches or pull requests

1 participant