Skip to content

Safer timezone set#5021

Merged
Alkarex merged 2 commits intoFreshRSS:edgefrom
Alkarex:safer-timezone-set
Jan 19, 2023
Merged

Safer timezone set#5021
Alkarex merged 2 commits intoFreshRSS:edgefrom
Alkarex:safer-timezone-set

Conversation

@Alkarex
Copy link
Member

@Alkarex Alkarex commented Jan 18, 2023

Add missing tzdata in Docker :newest
Fallback to UTC if no timezone is defined at all
#fix FreshRSS#4906 (comment)
@Alkarex Alkarex added this to the 1.21.0 milestone Jan 18, 2023
@Alkarex Alkarex mentioned this pull request Jan 18, 2023
@Alkarex
Copy link
Member Author

Alkarex commented Jan 18, 2023

@Alwaysin Please try. This should fix your warning. And then define your date.timezone in php.ini and/or define the new timezone option in user options.

@Alwaysin
Copy link
Contributor

I can confirm it suppressed the warning, but the UTC default doesn't seem to have been picked up by the UI:
chrome_2023-01-19_10-06-57

Isn't there a way to detect the timezone from the browser instead of defaulting to UTC?

Anyway, I've added my timezone in php.ini and all is good for me now!

Show fallback timezone everywhere
@Alkarex
Copy link
Member Author

Alkarex commented Jan 19, 2023

Could you please try again @Alwaysin ?
I have fixed the visualisation of the default timezone.

For the things that are server-side rendered, it is not so practical to detect and use browser settings. But not impossible. Anyway, not something for now.

@Alwaysin
Copy link
Contributor

All good now!

@Alkarex Alkarex merged commit dbdb786 into FreshRSS:edge Jan 19, 2023
@Alkarex Alkarex deleted the safer-timezone-set branch January 19, 2023 17:26
cjchung pushed a commit to cjchung/FreshRSS that referenced this pull request Jan 20, 2023
* Safer timezone set
Add missing tzdata in Docker :newest
Fallback to UTC if no timezone is defined at all
#fix FreshRSS#4906 (comment)

* Better refactoring
Show fallback timezone everywhere
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

Successfully merging this pull request may close these issues.

2 participants