O
O
Ord EO2019-04-30 16:05:42
Ruby on Rails
Ord EO, 2019-04-30 16:05:42

How to set time globally in rail application?

There is an application in Ruby, files are generated in it, using Time.now
How can I set the time so that it matches the time zone in which the user is located (not zero UTC time, but the current time of the user) without connecting third-party libraries, using Ruby on Rails

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
alfss, 2019-04-30
@alfss

https://quipper.github.io/2016/02/12/how-to-tame-t...
https://api.rubyonrails.org/classes/ActiveSupport/...
https://blog.blakesimpson .co.uk/page.php?id=43&tit...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question