Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

last.fm app displays time in UTC, not in local timezone #2610

Open
mashedkeyboard opened this issue Sep 1, 2024 · 7 comments
Open

last.fm app displays time in UTC, not in local timezone #2610

mashedkeyboard opened this issue Sep 1, 2024 · 7 comments

Comments

@mashedkeyboard
Copy link

Hi folks!

The last.fm app in the repository, when it has its clock function toggled on, seems to be displaying UTC time rather than local time - but the documentation in the app settings for that toggle says it should display local time. For instance, it's just gone 8pm here in the UK right now (British Summer Time, UTC+1), but it displays just past 7pm.

I'm not clear on whether the Tidbyt API actually offers a way to retrieve the time in the current timezone? Other similar clock apps in the repo seem to have either timezone or location settings separately. Does one need to be added, or is there a simpler fix?

@mashedkeyboard
Copy link
Author

@my-ugly-code - hi! I think you're the original author of the last.fm Tidbyt app. I note from the contributing guidance that changes are subject to approval from the original app author - would you be happy with a timezone setting being added? :)

@my-ugly-code
Copy link
Contributor

If other clock apps display correctly for you, yes, just implement what they're doing...seems to be .in_location(). I'm ok with whatever addition is needed to support TZs.

I'm guessing the function handles seasonal adjustments like Summer Time (DST in US). I'm in Eastern US and it's always 'just worked' for me,.

@dtseiler
Copy link

dtseiler commented Oct 2, 2024

oooh I was just wondering if there was a way to get the "system" configured TZ, having a similar issue with the duolingo app being defaulted to London. I'll give this a shot there. Thanks @my-ugly-code

@danielsitnik
Copy link
Contributor

danielsitnik commented Oct 3, 2024

Yes, to get the timezone for the device's location configured in the mobile app you just do config.str("$tz").
It's always a good idea to have defaults if things change in the future, so something like config.str("$tz", "America/New_York") would work.

@dtseiler
Copy link

dtseiler commented Oct 3, 2024

Yep I've done something similar. Is there a guide that mentions $tz? Are there other similar special variables that would be good to know about?

@danielsitnik
Copy link
Contributor

Sadly it's not mentioned in the documention.
There's even a PR tidbyt/tidbyt.dev#620 open since june to add it there. 😢

@dtseiler
Copy link

dtseiler commented Oct 4, 2024

Thanks, I've added a note there about testing it as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants