std.date again
Carlos Santander
csantander619 at gmail.com
Mon May 15 11:41:25 PDT 2006
Carlos Santander escribió:
> Here it's again:
>
> //------------------------
> import std.date;
> import std.stdio;
>
> void main()
> {
> writefln("UTC :%s", toTimeString(getUTCtime()));
> writefln("Local:%s", toTimeString(UTCtoLocalTime(getUTCtime())));
> }
> //------------------------
>
> :::: gdc 0.17, Mac OS X 10.4.6
>
> $ ./test
> UTC :06:20:52 GMT+0500
> Local:11:20:52 GMT+0500
>
> $ date
> Mon May 8 20:21:01 ECT 2006
>
>
Part of the problem here (I think) is in std/date.d:794, because as I said in
digitalmars.D.bugs, UTCtoLocalTime() is added when it shouldn't have, so maybe
changing the sign in getLocalTZA() will solve it?
--
Carlos Santander Bernal
More information about the D.gnu
mailing list