Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Conform Runtime Config Property name
  • Loading branch information
mdh1418 authored and github-actions committed Sep 1, 2022
commit 8a928dfad02024330ed0a6061af68813a82459e9
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ internal static TimeSpan GetLocalUtcOffset(DateTime dateTime, TimeZoneInfoOption
}
}

object? localDateTimeOffset = AppContext.GetData("LOCAL_DATE_TIME_OFFSET");
object? localDateTimeOffset = AppContext.GetData("System.TimeZoneInfo.LocalDateTimeOffset");
if (localDateTimeOffset == null)
return GetCacheLocalUtcOffset(dateTime, flags); // If no offset property provided through monovm app context, default

Expand Down
2 changes: 1 addition & 1 deletion src/tasks/AndroidAppBuilder/Templates/monodroid.c
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ mono_droid_runtime_init (const char* executable, int managed_argc, char* managed
const char* appctx_keys[3];
appctx_keys[0] = "RUNTIME_IDENTIFIER";
appctx_keys[1] = "APP_CONTEXT_BASE_DIRECTORY";
appctx_keys[2] = "LOCAL_DATE_TIME_OFFSET";
appctx_keys[2] = "System.TimeZoneInfo.LocalDateTimeOffset";

const char* appctx_values[3];
appctx_values[0] = ANDROID_RUNTIME_IDENTIFIER;
Expand Down