Hello FPC-Pascal, Wednesday, May 5, 2010, 11:23:42 PM, you wrote:
FC> Is the an LCL routine that can get the timezone from the computer on both FC> Windows and Linux? None of the examples mention a way of getting the FC> computer's time zone. Usually you will have an environment variable TZ, but at least in Windows this is not usually well formed and it is basically the most easy representation without daylight saving. In my case, Spain, I get TZ=GMT-1 and the right one should be TZ=CET-1CEST In my experience is much better to ask the user for the right time zone based in a bunch of cities, a lot of computers have a wrong time zone, I saw spanish computers with time zone Mexico, Colombia, Argentina... The user simply change local time and go on. -- Best regards, José _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal