Converted to SDK 2.0

Converted the code to SDK 2.0
This version persists the timezone settings.