Skip to content

Commit e239c2d

Browse files
committed
derp
1 parent b0eb10e commit e239c2d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

android/src/main/java/io/fullstack/firestack/FirestackModule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ public void onHostDestroy() {
208208
public Map<String, Object> getConstants() {
209209
final Map<String, Object> constants = new HashMap<>();
210210
constants.put("googleApiAvailability", getPlayServicesStatus());
211-
constants.put("serverTimeOffset", new Date().getTime() - Long.parseLong(ServerValue.TIMESTAMP.get(".sv")));
211+
constants.put("serverValueTimestamp", ServerValue.TIMESTAMP));
212212
return constants;
213213
}
214214
}

lib/modules/database/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export default class Database extends Base {
1919
constructor(firestack: Object, options: Object = {}) {
2020
super(firestack, options);
2121
this.subscriptions = {};
22-
this.serverTimeOffset = FirestackModule.serverTimeOffset || 0;
22+
this.serverTimeOffset = 0;
2323
this.persistenceEnabled = false;
2424
this.namespace = 'firestack:database';
2525

0 commit comments

Comments
 (0)