Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port over TimeZoneInfo.Android.cs #53634

Closed
wants to merge 1 commit into from

Conversation

mdh1418
Copy link
Member

@mdh1418 mdh1418 commented Jun 2, 2021

Fixes #41867

@ghost
Copy link

ghost commented Jun 2, 2021

Tagging subscribers to this area: @tarekgh, @safern
See info in area-owners.md if you want to be subscribed.

Issue Details

Fixes #41867

Author: mdh1418
Assignees: -
Labels:

area-System.Globalization

Milestone: -

@ghost
Copy link

ghost commented Jun 2, 2021

Tagging subscribers to this area: @tannergooding
See info in area-owners.md if you want to be subscribed.

Issue Details

Fixes #41867

Author: mdh1418
Assignees: -
Labels:

area-System.Runtime

Milestone: -

@@ -0,0 +1,762 @@

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We still need to include the license header:

// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.


namespace System {

interface IAndroidTimeZoneDB {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this build? I'd have expected some of our static analysis rules to kick in and warn about things like missing visibility.

return;
}

Console.Error.WriteLine ("Couldn't find any tzdata!");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In general we don't want to output to Console. Is this valid on Android only?

}

/*
* Android < v4.3 Timezone support infrastructure.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we don't support Android < v4.3 in dotnet/runtime anymore so all of this code can probably go away

* limitations under the License.
*/

#if MONODROID
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this needs to be removed otherwise none of this code is actually compiled :)

@mdh1418
Copy link
Member Author

mdh1418 commented Jun 15, 2021

The port is going to need a bit of work, so closing for now.

@mdh1418 mdh1418 closed this Jun 15, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Jul 15, 2021
@mdh1418 mdh1418 deleted the port_timezoneinfo_android branch August 10, 2021 17:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Port Android APEX timezone location lookup from mono/mono
5 participants