While trying to do a Windows 10 build I’m getting this error for TimeZone
SDK Universal 10
int currentOffset = (int)TimeZone.CurrentTimeZone.GetUtcOffset( System.DateTime.Now).TotalSeconds;
While trying to do a Windows 10 build I’m getting this error for TimeZone
SDK Universal 10
int currentOffset = (int)TimeZone.CurrentTimeZone.GetUtcOffset( System.DateTime.Now).TotalSeconds;
also got another one I’m not sure about
It doesn’t like the JSONObject I’m passing in the agrument
Assets/Politics.cs(255,39): error CS0012: The type `System.Object' is defined in an assembly that is not referenced. Consider adding a reference to assembly `System.Runtime, Version=4.0.20.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
static public void ShowLocationPicture(JSONObject planet_details_data, Image LocationPicture) {
As far as I know, TimeZone is not an available class on .NET scripting backend.
Did you try using IL2CPP?
using TimeSpan compares DateTimes and returns the result in any time count desired