Mail Archives: djgpp/1994/04/13/12:26:36
>> When compiled under BCC, it gives the same time as DOS. However, when
>> compiled under gcc (from 1.11 maint4), it reports a time that is one hour
>> earlier. Is this a bug?
>
>Do you have a TZ (time zone) environment variable defined?
If this is something that is required for a DJGPP compiled program to
report the correct time under DOS, then I think it is a bug. What about
this: If the TZ variable is set, use it. If not set, just report the time
like any other DOS program. After all, the program is running on DOS and
not Unix. For what it is worth, I do not have a TZ environment variable set
on any of my unix systems either.
--John
- Raw text -