Search Issue Tracker

Won't Fix

Votes

1

Found in

2017.1.0f3

Issue ID

935148

Regression

No

NullReferenceException is thrown TimeZoneInfo in some TimeZones

Themes

-

Reproduction steps:

1. Change your time zone to UTC +8 (Philippines)
2. Open "unity-timezoneinfo-bug.zip" project
3. Open the "Main" Scene
4. Enter Play mode

Expected Result: No errors should appear
Actual Result: NullReferenceExpection is thrown

Reproduced with: 2017.3.0a2, 2017.2.0b5, 2017.1.0p2, 5.6.3f1, 5.5.4p2

Note:

Error on Windows 10:
TimeZoneNotFoundException: Exception of type 'System.TimeZoneNotFoundException' was thrown.
System.TimeZoneInfo.get_Local ()
MainScript.Start () (at Assets/MainScript.cs:7)

Error on Mac (10.12.2):
NullReferenceException: Object reference not set to an instance of an object
Is only thrown on some TimeZones //System.TimeZoneInfo.GetApplicableRule(DateTime dateTime)
System.TimeZoneInfo.IsInvalidTime(DateTime dateTime)
System.TimeZoneInfo.IsDaylightSavingTime(DateTime dateTime)
System.TimeZoneInfo.GetUtcOffset(DateTime dateTime)
MainScript.Start () (at Assets/MainScript.cs:7)

You can fix this error by setting the Time zone to, for e.g., UTC +2 (Vilnius) (Works only for Mac)

For Mac, where you put the pin for the TimeZone can determine if the error is thrown or not, very random though

Happens in Countries:
Philippines
Brazil
Moscow
etc.

Doesn't Happen in:
Lithuania
Greenland
USA
etc.

Update: Using the 4.6 mono runtime and classlibs fixes this issue.

Comments (5)

  1. tarekgedawy

    Jan 08, 2023 00:00

    alfaris.company/2022/04/moving-furniture-from-Saudi-Arabia-to-Jordan.html نقل عفش من السعودية الى الاردن
    alfaris.company/2022/04/Land-freight-from-Saudi-Arabia-to-Jordan.html شركة شحن بري من السعودية للاردن
    alfaris.company/2022/04/International-shipping-rates-to-UAE-and-Jordan.html اسعار شركات الشحن الدولي الي الامارات والاردن
    alfaris.company/2022/04/Shipping-from-Jeddah-to-UAE.html شركة شحن من جدة الى للامارات
    alfaris.company/2022/04/Shipping-furniture-from-Jeddah-to-the-UAE.html شركة شحن عفش من جدة الى الامارات
    alfaris.company/2022/04/Shipping-furniture-from-Riyadh-to-Dubai.html شركة شحن عفش من الرياض الى دبي
    alfaris.company/2022/04/Land-transportation-from-Riyadh-to-Dubai.html شحن بري من الرياض الى دبي
    alfaris.company/2022/04/cheapest-shipping-to-Emirates.html ارخص شركة شحن للامارات
    alfaris.company/2022/04/moving-furniture-from-Jeddah-to-UAE.html شركة نقل عفش من جدة الى الامارات
    alfaris.company/2022/04/Shipping-rates-from-Saudi-Arabia-to-UAE.html اسعار الشحن من السعودية الى الامارات
    alfaris.company/2022/04/Shipping-furniture-from-Saudi-Arabia-to-UAE.html شحن اثاث من السعودية الى الامارات
    alfaris.company/2022/04/Shipping-From-Saudi-Arabia-to-UAE.html شحن بضائع من السعودية الى الامارات
    alfaris.company/2022/04/Land-freight-from-Saudi-Arabia-to-UAE.html شحن بري من السعودية للامارات
    alfaris.company/2019/12/Shipping-from-Jeddah-to-Oman.html شحن ونقل عفش من جدة الى سلطنة عمان
    alfaris.company/2019/12/Shipping-from-Jeddah-to-Iraq.html شحن ونقل عفش من جدة الى العراق
    alfaris.company/2019/12/Shipping-from-Jeddah-to-Qatar.html شحن ونقل عفش من جدة الى قطر
    alfaris.company/2019/12/Shipping-from-Jeddah-to-Bahrain.html شحن ونقل عفش من جدة الى البحرين
    alfaris.company/2019/12/Shipping-from-Jeddah-to-Kuwait.html شحن ونقل عفش من جدة الى الكويت

  2. tarekgedawy

    Jan 07, 2023 23:41

    number1-ksa.blogspot.com روبا للشحن
    alahmadiksa.home.blog الخليج للشحن
    north-corner.blogspot.com الخليج
    alsaqqr.blogspot.com الصقر
    futuredar.company دار المستقبل
    movers.futuredar.company الاصيل
    alfaris.futuredar.company الفارس لنقل الاثاث
    r.futuredar.company الرائد
    saada.futuredar.company قصور السعادة
    jaouhara.futuredar.company الجوهرة
    hs.futuredar.company هوم سيرفيس
    basmala.futuredar.company بسملة
    badr.futuredar.company البدر
    amal.futuredar.company الامل للمقاولات
    movers.futuredar.company اسيل الجنوب
    mover.bareeq-alsalam.com السلام لنقل الاثاث

  3. shubhamswaraj2021

    Aug 18, 2020 05:50

    good one <a href="https://www.lyricsauto.com">lyricsauto</a>

  4. pikachu17997

    Jul 24, 2019 16:32

    Looking the great fun here http://myspades.org to play here free spade online card game it is the best way to all players here thanks.

  5. facemao3

    Feb 27, 2018 09:13

    get this bug too.
    plz fix this...

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.