MOBILE-3087 calendar: Fix offline events not displayed in upcoming events page
This commit is contained in:
parent
56d8aba3b4
commit
e217234f9e
@ -264,7 +264,7 @@ export class AddonCalendarUpcomingEventsComponent implements OnInit, OnChanges,
|
||||
return this.onlineEvents;
|
||||
}
|
||||
|
||||
const start = Date.now(),
|
||||
const start = Date.now() / 1000,
|
||||
end = start + (CoreConstants.SECONDS_DAY * this.lookAhead);
|
||||
let result = this.onlineEvents;
|
||||
|
||||
|
@ -727,7 +727,7 @@ export class AddonCalendarProvider {
|
||||
return this.userProvider.getUserPreference('calendar_lookahead').catch((error) => {
|
||||
// Ignore errors.
|
||||
}).then((value): any => {
|
||||
if (typeof value != 'undefined') {
|
||||
if (value != null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user