Skip to content

Commit dcfd52b

Browse files
AustinWisetarekgh
andauthored
illumos: set default timezone info path (dotnet#104533)
This is where these files live on OpenIndiana and SmartOS. Co-authored-by: Tarek Mahmoud Sayed <[email protected]>
1 parent e0bb714 commit dcfd52b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/libraries/System.Private.CoreLib/src/System/TimeZoneInfo.Unix.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@ namespace System
1616
{
1717
public sealed partial class TimeZoneInfo
1818
{
19+
#if TARGET_ILLUMOS || TARGET_SOLARIS
20+
private const string DefaultTimeZoneDirectory = "/usr/share/lib/zoneinfo/";
21+
#else
1922
private const string DefaultTimeZoneDirectory = "/usr/share/zoneinfo/";
23+
#endif
2024

2125
// Set fallback values using abbreviations, base offset, and id
2226
// These are expected in environments without time zone globalization data

0 commit comments

Comments
 (0)