>> Roger via Freedos-user<freedos-user@lists.sourceforge.net>
>>
>> However, FreeDOS reports the time as UTC, +4 hours ahead of my local
>> time. (EDT local time here.)
>>
>> FreeDOS time seems hard-coded, and doesn't appear to be adjustable?
>>
>> Any way to script within FDAUTO.BAT %TIME%-4 ???
>>
>> Think I understand "TZ=" is just a variable used by upper level
>> applications.
>>
>> Roger

> On Sun, May 04, 2025 at 06:06:08PM +0000, Omar Yabar via Freedos-user
> wrote: SET  TZ=EST or TZ=EDT in fdauto.batif you already set a packet
> driver/odi shim yo can use sntp.exe from mTCP tools, just put: sntp -set
> 216.239.35.4 (or any ip or name of an sntp server) Volia! your date and
> time are set correctly, here in Peru we use -5 UTC, we don't have to
> deal with the crazyness of daylight saving time ;)

FreeDOS-1.4 FDAUTO.BAT TZ variable seems to have no affect at all,
whether set to EDT or EST, or even EDT-4EST, etc...

BIOS/EFI (or qemu host) time set to local time, FreeDOS-1.4 time
continually reports +4 hours ahead.

sntp.exe (an upper level/user application), when executed, sees TZ
variable and prints the TZ variable contents.

Last night prior to posting the initial post here, I searched the
FreeDOS source code (https://github.com/FDOS), found no mentions of any
time zones. (eg.  EDT/EST,CDT/CST, ...)  within the kernel or freecom
c ode.  Nor did I find any mention of TZ varaible, as to why I assumed
it was just a variable declared within the environment rather anything
to do with the system time.

On the flip, stumped how FreeDOS would know my timezone is -4 from
GMT/UTC.

Roger

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user

Reply via email to