I don’t know what happened, but it annoys me. I am now in the GMT-8 time zone. When I type Sys.Date()
, it returns the date of tomorrow.
Currently, the current date and time is 12/7/17 10:41 PM: I am typing Sys.time()
, and this is what I am getting:
Sys.time()
[1] "2017-12-08 14:37:22 GMT"
Then I try to set my time zone: Sys.setenv(TZ=Sys.timezone())
It clears without errors ... and then again I type Sys.Date()
and get
Sys.Date()
[1] "2017-12-08"
It should be 12/7/17 !!
Any help is appreciated.
source
share