Skip to content
This repository has been archived by the owner on Jul 30, 2020. It is now read-only.

Add List of NSTimeZone Names(iOS 9.3.1) for player locale 0.77.1 #1987

Merged
merged 19 commits into from
Oct 15, 2017

Conversation

Furtif
Copy link
Contributor

@Furtif Furtif commented Oct 8, 2017

//TODO: need edition!!!
//Ordre: TimeZone Name, Country, Language, POSIX

Source and credits

TimeZones file

Usage load ComboBox values:

            var zones = new TimeZoneIds().GetTimeZoneIds();
            foreach (var tz in zones)
            {
                cbTimeZone.Items.Add(tz.Key);
            }

            cbTimeZone.Text = settings.Auth.CurrentAuthConfig.TimeZone;

Save ComboBox Selected:

                //TimeZones for current Player
                var x = new TimeZoneIds().GetTimeZoneIds();
                _settings.Auth.CurrentAuthConfig.TimeZone = cbTimeZone.Text;
                _settings.Auth.CurrentAuthConfig.Country = x[cbTimeZone.Text].Item1;
                _settings.Auth.CurrentAuthConfig.Language = x[cbTimeZone.Text].Item2;
                _settings.Auth.CurrentAuthConfig.POSIX = x[cbTimeZone.Text].Item3;
                //

Settings result:

 "Bots": [
    {
      "AuthType": "ptc",
      "Username": "XXXXXXX",
      "Password": "YYYYYYY",
      "AutoExitBotIfAccountFlagged": false,
      "AccountLatitude": 44.101177338726977,
      "AccountLongitude": 3.0776309967041016,
      "AccountActive": true,
      "Country": "FR",
      "Language": "fr",
      "TimeZone": "Europe/Paris",
      "POSIX": "fr-fr"
    }
  ],

@Furtif Furtif changed the title Add List of NSTimeZone Names(iOS 9.3.1) for player locale Add List of NSTimeZone Names(iOS 9.3.1) for player locale 0.77.1 Oct 13, 2017
Fixes agregatte exeption rocketbot
set lightpink color to list for pokemon deployed
@Furtif Furtif mentioned this pull request Oct 15, 2017
@Lord-Haji Lord-Haji merged commit 42ceeb2 into Necrobot-Private:master Oct 15, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants