Is the location services prompt needed for only timezone in ios

278 Views Asked by At

I can't seem to find if I need to have the location services prompt if I'm just using the timezone? I've turned off location services on my phone while testing and it still finds my timezone with it off. I just don't want to be rejected by apple.

I'm using this: var timeZone = NSTimeZone.localTimeZone().name

Thanks for any help.

Keith

1

There are 1 best solutions below

4
On BEST ANSWER

No. You will never get a prompt for localtimezone which is used by default when creating your NSDate objects. BTW you are not defining any timeZone like this you are only assigning the name of the local timezone to a var.

If you need some more info regarding time zones you should take a look at this link:

using NSTimeZone framework