Bug 51794 - TimeZoneInfo.Local.Id and TimeZoneInfo.Local.DisplayName return "Local" on Linux
Summary: TimeZoneInfo.Local.Id and TimeZoneInfo.Local.DisplayName return "Local" on Linux
Status: NEW
Alias: None
Product: Class Libraries
Classification: Mono
Component: System (show other bugs)
Version: 4.6.0 (C8)
Hardware: PC Linux
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-01-26 18:39 UTC by Nikhil
Modified: 2017-01-30 04:00 UTC (History)
1 user (show)

See Also:
Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Screenshot on Linux and Windows (262.39 KB, image/png)
2017-01-26 18:39 UTC, Nikhil
Details

Description Nikhil 2017-01-26 18:39:01 UTC
Created attachment 19493 [details]
Screenshot on Linux and Windows

While fetching the currenttimezone using “TimeZoneInfo.Local” we are getting the value of “DisplayName” and “ID” as Local in Linux, while it is giving correct values in Windows implementation.


TimeZoneInfo TZI_Local = TimeZoneInfo.Local;
              string DisplayName = TZI_Local.DisplayName;
              string Id = TZI_Local.Id;
Console.WriteLine("Display Name : " + DisplayName);
              Console.WriteLine("ID : " + Id);
PFA screenshot for more Details
Comment 1 Nikhil 2017-01-30 04:00:15 UTC
Please advice

Note You need to log in before you can comment on or make changes to this bug.