Incorrect time zone on DEP Mac

expand collapsive

Helo, we have purchased some DEP macs with Monterey OS for the company. And, have skipped the set-up screens including the location services on the Macs. Now the time zone on the devices is not correct. Manually setting time zone on each mac is tedious. Is there an easy way to do this?

All Replies

  • Hexnode

    Evin Lee

    Moderator

    Hi @jude-torres,

    Thanks for reaching out to us.

    Yes, you can deploy custom scripts from the Hexnode portal to set the time zone on all of your Mac devices. Here is the script:

    Replace ‘$1’ with your time zone.
    E.g., ‘sudo systemsetup –settimezone Asia/Dili’

    Disclaimer:

    Please note that the script is obtained from third-party open-source sites. Hence, validating the script execution on a system manually before executing in bulk is recommended. And, Hexnode will not be responsible for any damage/loss to the system due to the script’s behavior.

    Hope this helps.

    Thanks
    Evin Lee
    Hexnode UEM

  • Participant

    Feeechi

    Participant

    Using the ‘settimezone’ command, I have set the timezone on our mac devices, but some devices are not showing the correct date and time. Are there any scripts to correct time and date on these devices?

  • Hexnode

    Evin Lee

    Moderator

    Hi @feeechi,

    Thanks for reaching out to us.

    Your devices are showing incorrect date and time even after setting the time zone is because you have not enabled the ‘Set date and time automatically’ option on the devices. If you enable this option, the time and date will be automatically adjusted to the correct time. You can deploy the script given below to the devices to get this job done.

    Running this script will automatically update the proper date and time on the devices.

    You can also use the following scripts to adjust time and date on Mac devices.

    To set the date:

    E.g., ‘sudo systemsetup –setdate 03:31:2021’

    To set the time:

    E.g., ‘sudo systemsetup –settime 08:31:00’

    Note that the last two scripts mentioned above will not work if the ‘Set date and time automatically’ option is already enabled on the devices.

    Disclaimer:

    Please note that the scripts are obtained from third-party open-source sites. Hence, it is recommended to validate the script execution on a system manually before executing in bulk. And, Hexnode will not be responsible for any damage/loss to the system due to the script’s behavior.

    Hope this suits your requirement.

    Cheers!
    Evin Lee
    Hexnode UEM