From: Renato S. <br....@gm...> - 2012-10-16 23:14:37
|
Em 16/10/2012 13:47, "Konrad Hambrick" <ko...@pa...> escreveu: > > > > > > Renato Silva [mailto:br....@gm...] said: > On Tuesday, October 16, 2012 10:40 AM > Em 16/10/2012 08:57, "Earnie Boyd" <ea...@us...> escreveu: > > > > On Tue, Oct 16, 2012 at 12:43 AM, Renato Silva wrote: > > > It is too long to copy and paste, and I tried to explain the problem quite > > > well, so I'm just linking: > > > > > > http://stackoverflow.com/questions/12765650/mingw-msys-msvcrt-and-the-tz-environment-variable > > > > > > Can anyone give clear information as explained in the above link? > > > > I posted the below as an answer to the above link. > > > > The simple solution is to set your windows environment variable as you > > expect then change the variable in your ~/.profile file for MSYS to > > what POSIX expects. > > I'm sorry but that's the very problem not a solution :( Maybe it wasn't clear but I'm already setting TZ from within MSYS (in /etc/profile), and I run MSVCRT programs from within Bash, so whatever it was in Windows gets overwritten. In Windows, I need TZ unset because MSVCRT works just fine without it, in fact TZ is just a way to break system settings here. The best solution I've figured out so far is caching my desired TZ value in some other variable in /etc/profile or similar (because the DST period part comes from a Ruby script), then set TZ with the cached value for each command I manage to figure out to be using MSYS runtime for local time (currently date and ls). > > Renalto -- > > While I've not tried putting a SETLOCAL / ENDLOCAL Pair in MSYS.BAT that might help. > > What has been working for me is to begin my $HOME/.profile with: > > unset TZ Thanks for the msys.bat tip, I plan to try it out later. But what do you mean unset TZ in bash works for you? What's your use case? > > HTH. > > -- kjh > > > ------------------------------------------------------------------------------ > Don't let slow site performance ruin your business. Deploy New Relic APM > Deploy New Relic app performance management and know exactly > what is happening inside your Ruby, Python, PHP, Java, and .NET app > Try New Relic at no cost today and get our sweet Data Nerd shirt too! > http://p.sf.net/sfu/newrelic-dev2dev > _______________________________________________ > MinGW-users mailing list > Min...@li... > > This list observes the Etiquette found at > http://www.mingw.org/Mailing_Lists. > We ask that you be polite and do the same. Disregard for the list etiquette may cause your account to be moderated. > > _______________________________________________ > You may change your MinGW Account Options or unsubscribe at: > https://lists.sourceforge.net/lists/listinfo/mingw-users > Also: mailto:min...@li...?subject=unsubscribe |