class/static methods of NSTimeZone/TimeZone still return system time zone after changing NSTimeZone.default

Originator:Manuel.Burghard
Number:rdar://34594717 Date Originated:22.09.2017
Status:DUPLICATE OF 34507729 Resolved:
Product:Foundation Product Version:1444.12
Classification:Serious Bug Reproducible:Always
 
Area:
Foundation

Summary:
The behaviour of the class/static methods of NSTimeZone/TimeZone differs between the Foundation versions shipped with iOS 10.x/macOS 10.12.x and iOS 11 and macOS 10.13.
For me this looks like a regression.

Playground with additional information and an a example reproducing the problem attached.

Steps to Reproduce:

1. Set a different time zone for the application using NSTimeZone.default
2. Use NSTimeZone.local/TimeZone.autoupdatingCurrent 

Expected Results:

NSTimeZone.local/TimeZone.autoupdatingCurrent return the time zone NSTimeZone.default points to.

Actual Results:

NSTimeZone.local/TimeZone.autoupdatingCurrent return system time zone.


Version/Build:

iOS 11: Foundation version 1444.12
macOS 10.12.6: Foundation version 1349.91

Configuration:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!