rails/activesupport/lib
Aleksei Chernenkov aedb808829 Fix Time.now/DateTime.now/Date.today to return results in a system timezone after #travel_to
There is a bug in the current implementation of #travel_to:
it remembers a timezone of its argument, and all stubbed methods start
returning results in that remembered timezone. However, the expected
behaviour is to return results in a system timezone.

It can lead to bugs in tests like this one:
https://github.com/faker-ruby/faker/issues/2861
2023-12-02 10:05:31 +01:00
..
active_support Fix Time.now/DateTime.now/Date.today to return results in a system timezone after #travel_to 2023-12-02 10:05:31 +01:00
active_support.rb Add a public API for broadcasting logs: 2023-09-25 20:40:51 +00:00