Etar-Group / Etar-Calendar

Android open source calendar
https://f-droid.org/packages/ws.xsoh.etar/
GNU General Public License v3.0
2.02k stars 392 forks source link

Calendar widget one to two days behind #1156

Open ultimase opened 2 years ago

ultimase commented 2 years ago

Running calyxos, and noticed recently that the calendar widget appears to lag a day or two behind the actual day. For example today while being Tuesday the widget is still showing Sunday events. This is occurring on two of my phones. Anyone else stumble onto this?

0xFFFFFFFFFFFFFFFFFF commented 2 years ago

I noticed the same issue on the etar calendar shipped by my official lineage os rom (Android 12). I always have to remove and add the widget back again, which is very inconvenient.

jewelooper commented 2 years ago

Same problem here with calyxos 3.5.1 and etar 1.0.29. The widget does not update to current date. Only when readding the widget to home screen the widget shows the correct date again.

0xFFFFFFFFFFFFFFFFFF commented 2 years ago

I manged to get rid of the problem by visiting etars app-info and

Also I noted, that etars widget isn't the only one with that issue but other widgets are affected aswell. Although there are some widgets, which are not affected…

Forage commented 2 years ago

I can confirm that changing the settings mentioned by kuba1909 appears to do the trick. The date of the widget moved one day forward this night.

jondo commented 2 years ago

Allowing unlimited battery use also solved this for me. Thanks, @kuba1909 !

friedger commented 1 year ago

Instead of unlimited battery use permissions, it might be better to use a scheduler or so that updates the widget once a day Or add a guesture/UI to update it manually

hcgrove commented 1 year ago

I have a OnePlus 11, running OxygenOS 13 (which is more or less just another name for ColorOS) I have selected "Allow background activity" in the permissions for Etar but that is apparently not enough to stop me from experiencing this (but right now it is updated, so I can't make screenshots, but I also guess that everyone here knows what it looks like). Does anyone know any other setting on OxygenOS that might be relevant? In any case I support the adding of a button to the widget (in most cases I think there will be space directly to the left of the '+' to add a new item).

0xFFFFFFFFFFFFFFFFFF commented 1 year ago

@hcgrove You may try this: https://dontkillmyapp.com/oneplus

hcgrove commented 1 year ago

@kuba1909 I have My comments to those hints:

hcgrove commented 1 year ago

This morning (and having turned that setting off, the phone should no longer try to figure out when I'm sleeping and optiimise battery usage then) the widget said it was wednesday, when it is thursday. I.e. te widget is still not getting updated, I've tried every relevant setting I can find on my OnePlus11 running OxygenOS 13, and the hints on seem to be for an older version of OxygenOS.

hcgrove commented 1 year ago

What I wrote above was not completed. In addition to "Allow background activity" as mentioned above (if anybody needs to find it, it's in "Settings" (app)/"Apps"/"App management"/"Etar"/"Battery usage" - but see below) I had also chosen never to optimise (can't find the setting in the new version of OxygenOS can came a few days after the change I mention below) Etar's battery usage.

Some weeks ago I tried turning off "Allow background activity", that enabled the setting called "Allow foreground activity" just above, that was dimmed out before but seemed to be so in the "on" position. I didn't change that setting just left it "on" - and since then etar's widget has worked as it should. As I would characterise the widget's operation as foreground activity, I doubt it was actually allowed (even though it seemed so), but in any case, but in any case it's strange that disallowing anything made stuff work. A couple of days later (when I first started to think it might work), I made a test event with a notification set, and wasn't warned, but earlier today I got a notification for an event (that was created on 26 June), so I'm cautiously optimistic, I've just added an notification for an event on monday (but the notification is set to happen 1 day before, i.e. on sunday) to see if it works.

TL;DR: It might help to turn off certain settings you think should help by allowing certain kinds of activity.