File tree 2 files changed +2
-2
lines changed
android/src/main/java/io/fullstack/firestack
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -208,7 +208,7 @@ public void onHostDestroy() {
208
208
public Map <String , Object > getConstants () {
209
209
final Map <String , Object > constants = new HashMap <>();
210
210
constants .put ("googleApiAvailability" , getPlayServicesStatus ());
211
- constants .put ("serverTimeOffset " , new Date (). getTime () - Long . parseLong ( ServerValue .TIMESTAMP . get ( ".sv" ) ));
211
+ constants .put ("serverValueTimestamp " , ServerValue .TIMESTAMP ));
212
212
return constants ;
213
213
}
214
214
}
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ export default class Database extends Base {
19
19
constructor ( firestack : Object , options : Object = { } ) {
20
20
super ( firestack , options ) ;
21
21
this . subscriptions = { } ;
22
- this . serverTimeOffset = FirestackModule . serverTimeOffset || 0 ;
22
+ this . serverTimeOffset = 0 ;
23
23
this . persistenceEnabled = false ;
24
24
this . namespace = 'firestack:database' ;
25
25
You can’t perform that action at this time.
0 commit comments