• Re: Setting time zone?

    From Nick Cine@nickcine@is.invalid to alt.comp.os.windows-10,alt.msdos.batch,alt.comp.os.windows-11 on Mon May 20 11:59:19 2024
    From Newsgroup: alt.msdos.batch

    On Mon, 20 May 2024 11:09:22 -0600, Jeff Barnett wrote:

    I have a small Win 10 laptop that I got a few years ago to use for
    TurboTax when Intuit quit running on Win 7. I occasionally use it for
    video conferences too. Today I noticed that it was set to the wrong time zone so I tried to set it to the proper one.

    I found my way to the place to change it by right click on the date-time
    on the tool bar and selecting "adjust date/time". Though a "Time zone"
    line was displayed, it was 1) grayed out and 2) non responsive to the
    mouse. I tried turning off "Set time automatically" and noted that "set
    time zone automatically" was off. The former could be toggled the latter could not. No combination allowed changing "Time zone".

    Obvious question: How do I set the time zone for this laptop?

    For fingerprinting reasons, I use an old batch script posted by, I think, Herbert Kleebauer long ago to this newsgroup (or to the batch newsgroup).

    All it does is set the timezone randomly to any timezone using tzutil.
    Here's an example line to set the time zone to "Arabic Time Zone".

    REM (UTC+03:00) Baghdad
    tzutil.exe /s "Arabic Standard Time"

    Let me look for the script though... ok... I think I found it.

    @echo off
    rem tzrandom.bat randomly sets the Windows system timezone
    rem by Herbert Kleebauer, 20200415, alt.msdos.batch
    setlocal EnableDelayedExpansion

    :loop
    set /a n=137*%random%/32768*3+1
    for /f "tokens=*" %%i in ('tzutil /l^|more +%n%') do set a=%%i& goto :l1
    :l1
    echo.
    echo.
    echo setting time zone to: %a%
    tzutil.exe /s "%a%"

    :: wait 6-24h
    set /a n=20864+(%random%*2)
    set /a h=%n%/3600
    set /a m=(n-(%h%*3600))/60
    echo waiting %h% hours, %m% minutes
    timeout %n%
    goto :loop

    exit 0
    --- Synchronet 3.21d-Linux NewsLink 1.2