getLocalTimezone function

Future<String> getLocalTimezone()

Gets the local timezone identifier for web platforms.

Uses the browser's Intl.DateTimeFormat API to determine the local timezone. This implementation is used when dart:html is available (web platforms).

Returns a Future<String> containing the timezone identifier (e.g., "America/New_York", "Europe/London", "Asia/Tokyo"). If the timezone cannot be determined, returns 'UTC'.

Implementation

Future<String> getLocalTimezone() async {
  return _getTimezoneViaIntl();
}