Skip to content

TimeZoneNotFoundException on calling DateTimeOffset.Now #5080

@Cheesebaron

Description

@Cheesebaron

We have a device in the wild from a user, which crashes with TimeZoneNotFoundException on startup, when we try to write to Serilog Logger. However, it seems to happen when DateTimeOffset.Now is called within Serilog.

User seems to be using English locale according to AppCenter

Steps to Reproduce

  1. Call DateTimeOffset.Now on a Xiaomi Redmi Note 9 (M2003J15SC)

Expected Behavior

No crash

Actual Behavior

Throws System.TimeZoneNotFoundException

Version Information

Android 10
Xiaomi Redmi Note 9 (M2003J15SC)

Built with on Azure DevOps macOS 10.15 agent on 20200703 with:

Xamarin.Android 10.3.1
Mono 6.8.0.123

Log File

AppCenter Crash report:
https://gist.github.com/Cheesebaron/06ab58af391d1b8886a512c26d6c3063

Metadata

Metadata

Labels

Area: App RuntimeIssues in `libmonodroid.so`.Area: Mono RuntimeMono-related issues: BCL bugs, AOT issues, etc.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions