Skip to content

ParseInstallation timeZone missing #96

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

Closed
IonAgorria opened this issue Mar 5, 2019 · 3 comments · Fixed by #811
Closed

ParseInstallation timeZone missing #96

IonAgorria opened this issue Mar 5, 2019 · 3 comments · Fixed by #811
Labels
type:bug Impaired feature or lacking behavior that is likely assumed

Comments

@IonAgorria
Copy link
Contributor

As explained in #95 currently there is no a proper way to get time zone as Parse Server expects in Flutter, one solution would be using platform specific code.

@RodrigoSMarques
Copy link
Contributor

Hi @IonAgorria
I checked the Parse SDK code on Android and it gets the TimeZone from the device and not from the server.

This lib here can help: https://pub.dartlang.org/packages/flutter_native_timezone
`
// Android documentation states that getID may return one of many forms: America/LosAngeles,
// GMT-, or code. We only accept the first on the server, so for now we will not upload
// time zones from devices reporting other formats.
private void updateTimezone() {
String zone = TimeZone.getDefault().getID();
if ((zone.indexOf('/') > 0 || zone.equals("GMT")) && !zone.equals(get(KEY_TIME_ZONE))) {
performPut(KEY_TIME_ZONE, zone);
}
}

`

@RodrigoSMarques
Copy link
Contributor

We are closing issues that have been open for a long time without activity.
This will make it easier to organize things from now on.
If the problem persists, please open a new issue.
Thanks.

@parse-github-assistant
Copy link

Thanks for opening this issue!

  • ❌ Please edit your post and use the provided template when creating a new issue. This helps everyone to understand your post better and asks for essential information to quicker review the issue.

@mtrezza mtrezza added the type:bug Impaired feature or lacking behavior that is likely assumed label Dec 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Impaired feature or lacking behavior that is likely assumed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants