Skip to content
New issue

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

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

Already on GitHub? # to your account

Fix Installation timezone TODO. #186

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
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
1 change: 1 addition & 0 deletions lib/parse_server_sdk.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import 'package:shared_preferences/shared_preferences.dart';
import 'package:uuid/uuid.dart';
import 'package:web_socket_channel/io.dart';
import 'package:xxtea/xxtea.dart';
import 'package:flutter_native_timezone/flutter_native_timezone.dart';

part 'package:parse_server_sdk/src/objects/response/parse_error_response.dart';
part 'package:parse_server_sdk/src/objects/response/parse_exception_response.dart';
Expand Down
5 changes: 3 additions & 2 deletions lib/src/objects/parse_installation.dart
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,9 @@ class ParseInstallation extends ParseObject {
}

//Timezone
//TODO set<String>(keyTimeZone, );

final String currentTimeZone = await FlutterNativeTimezone.getLocalTimezone();
set<String>(keyTimeZone, currentTimeZone);

//App info
final PackageInfo packageInfo = await PackageInfo.fromPlatform();
set<String>(keyAppName, packageInfo.appName);
Expand Down
1 change: 1 addition & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ dependencies:
sembast: ^1.15.1
xxtea: ^2.0.2

flutter_native_timezone: ^1.0.4

# Utils
path_provider: ^0.5.0+1
Expand Down