srawlins / timezone

Time zone database and time zone aware DateTime object for Dart.
BSD 2-Clause "Simplified" License
102 stars 53 forks source link

How to use timeZone abbreviation and TimeZoneOffset while creating DateTime Object in flutter? #110

Open TharaniP opened 3 years ago

TharaniP commented 3 years ago

Using timezone abbreviation (Eg: CT, ET) and timeZoneOffset, I want to create a DateTime Object with a specified timezone. But I am always getting the date in current timezone.

But DateTime object should be specified timezone. But i did not find the option to specify the timezone while creating a DateTime Object.