timonhou / terminal-ide

Automatically exported from code.google.com/p/terminal-ide
0 stars 0 forks source link

Timezone support (specifically with rsync) #21

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I've discovered that timezone is not set in the Terminal IDE. Typing

#> date
gives time in UTC whereas my local time is CET. Consequently the time is one 
hour off from what the clock in the Android tray shows. 

I've actually discovered this problem while running rsync on the tablet in the 
daemon mode to synchronize files with the PC. When transferring from PC to 
Device they consistently get a time-stamp which is again one hour off. 
Annoyingly enough they get detected as updates upon the next rsync run.

Interestingly I've been running rsync couple of times before in a client mode 
and did not notice this behavior, but I did not try to investigate it further.

Greetings,
Maxim

P.S.: great app by the way, by far the best free app I've seen to date.

Original issue reported on code.google.com by zaitsev....@googlemail.com on 23 Jan 2012 at 10:45

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
add this to your .bashrc:

alias date='TZ="UTC-1CET" date'

Original comment by tye...@gmail.com on 20 Oct 2013 at 11:03

GoogleCodeExporter commented 9 years ago
sorry, I misread, add this to your .bashrc:

export TZ="UTC-1CET"

Original comment by tye...@gmail.com on 24 Oct 2013 at 1:20

GoogleCodeExporter commented 9 years ago
After a bit of messing around, I found I had to use:

export TZ="PST+8"

For Pacific standard time. Unfortunately, I guess I'll have to manually change 
that to PDT when daylight time starts again in the spring. Ugh.

Original comment by goo...@mspacek.mm.st on 18 Jan 2014 at 10:34

GoogleCodeExporter commented 9 years ago
FWIW, 'PST8PDT' should automatically account for daylight savings time.

Original comment by sethmill...@gmail.com on 10 Mar 2014 at 10:12