Created
October 14, 2020 17:07
-
-
Save c80609a/59c8d4579b5827d11e2c0bc14c862648 to your computer and use it in GitHub Desktop.
WTF DateTime.current
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
``` | |
ubuntu@server:~$ timedatectl | |
Local time: Wed 2020-10-14 20:03:02 MSK | |
Universal time: Wed 2020-10-14 17:03:02 UTC | |
RTC time: Wed 2020-10-14 17:03:03 | |
Time zone: Europe/Moscow (MSK, +0300) | |
System clock synchronized: yes | |
NTP service: active | |
RTC in local TZ: no | |
``` | |
``` | |
ubuntu@server:~/project/current$ bundle exec rails c -e production | |
Loading production environment (Rails 6.0.1) | |
irb(main):001:0> DateTime.current | |
=> Wed, 14 Oct 2020 17:04:56 +0000 | |
irb(main):002:0> | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
solved, application.rb: