I'm trying to get "dts" to echo the current local time in vim (cygwin under Windows 7) byt the output is GMT+1 instead of the localtime (GMT-7). My abbreviation works fine on other machines, but I can't get it to work on this one.
The abbreviation is:
dts <expr> strftime("%m.%d.%Y %H:%M:%S") Result: 3/27/2012 9:53:03 PM
From the cygwin command line, TZ is set to America/Los_Angeles and the
date command outputs the correct time. It's only when I try using strftime() under gvim that the timestamp is wrong. I tried adding %z to see the GMT offeset but the results are even more baffling:
:iab qwe strftime("%c (%z)") Result: 3/27/2012 9:53:03 PM (ric)
I have been unable to figure out what "ric" means.