You are not logged in.

Announcement

[2017.09.08] DeployStudio build v1.7.8 (checksum, release note).
[2016.08.26] DeployStudio build v1.6.19 (release note).
[2013.02.23] DeployStudio last universal build v1.5.17 (release note).

#1 2015-12-10 18:06:50

djk
Member
Registered: 2015-12-08

TImezone and NTP server being set incorrectly

Hi,

Using DS 1.7.0 (but it's been happening since at least 1.6.18), 10.11.1 NBI.

In the "Time" workflow I have chosen the Euro NTP server and Europe/London as the timezone – neither are set correctly by the task.

Instead, the US NTP server is selected and the timezone is blank with the closest city being "Unknown - Unknown" and with the map pin being off the coast of Nigeria and Cameroon.

If you need anything from me to debug this, please let me know.

Offline

#2 2016-01-18 12:17:42

jelockwood
Member
Registered: 2009-11-11

Re: TImezone and NTP server being set incorrectly

I have not rechecked this for a long time but original also found the built-in step was unreliable. Currently I use the following in my own shell script along with many other settings.

/usr/sbin/systemsetup -setusingnetworktime off
/usr/sbin/systemsetup -settimezone "Europe/London"
/usr/sbin/systemsetup -setnetworktimeserver "time.euro.apple.com"
/usr/sbin/systemsetup -setusingnetworktime on

Offline

#3 2016-02-02 18:12:18

sillywilly
Member
Registered: 2016-02-02

Re: TImezone and NTP server being set incorrectly

I spent a long time debugging this today and have figured out what's happening. It seems like if you use "systemsetup -settimezone" with a GMT timezone (eg. London, Dublin) then it is displayed as "Unknown - Unknown".
In order to get System Preferences to display the right thing, you have to manually bodge .GlobalPreferences.plist, for example:

plistbuddy="/usr/libexec/PlistBuddy"
tzplist="/Library/Preferences/.GlobalPreferences.plist"

"$plistbuddy" -c "Add :com.apple.preferences.timezone.selected_city dict" "$tzplist"
"$plistbuddy" -c "Add :com.apple.preferences.timezone.selected_city:AppleMapID integer 144136152979344160" "$tzplist"
"$plistbuddy" -c "Add :com.apple.preferences.timezone.selected_city:CountryCode string GB" "$tzplist"
"$plistbuddy" -c "Add :com.apple.preferences.timezone.selected_city:Latitude real 51.500152587890625" "$tzplist"
"$plistbuddy" -c "Add :com.apple.preferences.timezone.selected_city:LocalizedNames dict" "$tzplist"
"$plistbuddy" -c "Add :com.apple.preferences.timezone.selected_city:LocalizedNames:en string London" "$tzplist"
"$plistbuddy" -c "Add :com.apple.preferences.timezone.selected_city:Longitude real -0.1262362003326416" "$tzplist"
"$plistbuddy" -c "Add :com.apple.preferences.timezone.selected_city:Name string London" "$tzplist"
"$plistbuddy" -c "Add :com.apple.preferences.timezone.selected_city:Population integer 7825200" "$tzplist"
"$plistbuddy" -c "Add :com.apple.preferences.timezone.selected_city:TimeZoneName string Europe/London" "$tzplist"
"$plistbuddy" -c "Add :com.apple.preferences.timezone.selected_city:Version integer 1" "$tzplist"

Offline

#4 2016-02-03 12:04:44

djk
Member
Registered: 2015-12-08

Re: TImezone and NTP server being set incorrectly

Thanks sillywilly, going to give it a go!

jelockwood, appreciate the post but your solution didn't work for me.


Edit: sillywilly, works a treat, thanks!

Last edited by djk (2016-02-03 12:40:16)

Offline

#5 2016-02-20 15:26:51

MichalM.Mac
Member
Registered: 2014-07-27

Re: TImezone and NTP server being set incorrectly

I found out third of my deployed computers were using incorrect NTP server. Fixed with ARD. Next time I'll be using script similiar to jelockwood's sice Time action can't be trusted.

Offline

#6 2016-04-01 09:33:11

MichalM.Mac
Member
Registered: 2014-07-27

Re: TImezone and NTP server being set incorrectly

"– default timezone setting for OS X setup assistant"

<- Do you think this note from 1.7.3 update is relevant to our issue?

Offline

Board footer

Powered by FluxBB