tidbyt / community

A publishing platform for apps developed by the Tidbyt community 🚀
Apache License 2.0
386 stars 666 forks source link

[duolingo] Duolingo app only uses default timezone (London) #2663

Open dtseiler opened 1 week ago

dtseiler commented 1 week ago

I just started using the app this week. I've noticed that it was saying I hadn't done any lesson that day when I had. I read your note that it should refresh every 20 minutes but that didn't seem to be it. I then changed to weekly view and it was flashing on Saturday when it is currently 6:30 PM on Friday evening for me (USA central daylight time).

I have my location set in my Tidbyt app preferences but apparently the Duolingo app isn't using that or unable to read that?

I see where it should be reading it and defaulting to the DEFAULT_TIMEZONE of "Europe/London".

Just wondering if it's the app or maybe something else I didn't set. I'm a new Tidbyt user. This is on a Gen2, app is on Android.

dtseiler commented 1 week ago

Perhaps I'm mistaken in assuming that Tidbyt or duolingo widget would be determining the timezone based on my specified location. I don't specify timezone anywhere in the Tidbyt app or duolingo settings. I only specify my location (city).

dtseiler commented 1 week ago

I set up the dev kit and played with changing the default to force it for now. I'm not sure if there's supposed to be a config drop-down for timezone or what config.get(timezone) is expected to retreive yet. Even so when I query now for my user, the latest value only has date 1726272000 which is Fri Sep 13. Today is Sat Sep 14 and I've done my lessons nearly 12 hours ago. I'm curious if there's a known delay from Duolingo that would explain the gap.

dtseiler commented 5 days ago

@saltedlolly Not sure if it's bad form to ping the developer directly (apologies if so), but curious if you've encountered similar problems. It seems like, regardless of the timezone issue, there is some lag or gap in what Duolingo provides via that query API.

saltedlolly commented 5 days ago

Hi, the truth is I built this for myself several years ago and it is a long time since I looked at it. I've pretty much forgotten how it works even though I built it and would need to dig into it. Since I am in the UK on London time this is not an issue that I have encountered personally. Someone else was mentioning this issue on the Tidbyt support site (perhaps that was you?). If I had time to look into it, I would, but I just don't right now. Sorry. By all means make a PR if you can figure out the issue.

dtseiler commented 5 days ago

That might have been me if it was this past weekend. I was enjoying getting into the code, just wanted to touch base and see if there wasn't something already being looked it so I'm not re-inventing any wheels as I stumble around.

The obvious solution is for me to simply move to London.