i check api documentation of system.timezoneinfo , says there method called findsystemtimezonebyid takes single string argument.
but, when try implement in xamarin project, gives me error: timezoneinfo doesn't contain definition 'findsystemtimezonebyid'.
does know how solve error?
portable class libraries not have access system time zones via timezoneinfo
api, because system time zones platform specific. windows time zones different iana time zones found on platforms. read more in the timezone tag wiki.
if need work multiple time zones in xamarin application, best bet use standard iana time zones (aka "tzdb") noda time library, instead of using timezoneinfo
@ all.
alternatively, not use pcl, , instead create individual platform-specialized libraries, using time zones available each platform. find difficult though, not apis different, data different well.
Comments
Post a Comment