-
Notifications
You must be signed in to change notification settings - Fork 2k
fix for render_datetime() #6252
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
Conversation
@smotornyuk you updated this code in #5376 WDYT? At a minimum it doesn't make sense to pass this to only one of the |
@wardi Thanks for you reply. In the template we are passing with_hours=True
as only this code is going to execute Line 53 in 53b9442
Line 55 in 53b9442
thats why i pass rebase=False only in that place If you have any suggestion, I m glad to fix it if needed Thanks. |
It doesn't sound quite right for me.. you are trying to fix consequences, not the source of the problem. Can you just set babel's default locale to the one, specified by And yes, I think that all routes of |
hey @smotornyuk thanks for your reply I just set the babel's default timezone to the one specified by .. but when i set the value: i got this error Any suggestion? PS The source of the problem is because we didnt provide So .. to prevent this...we can: What's your opinion over this? |
There is a helper, So you can "unwrap" value of |
@smotornyuk Thanks for your help. |
hey @wardi can you check my last PR? I did it as @smotornyuk suggest. Thanks |
Hey @wardi it's me again 😊 can you please check my PR ? Thanks |
@smotornyuk I'll have to rely on you again, does this seem like a sensible flask config change? |
Yep. I would say that it's the only right way to configure flask-babel timezone in CKAN) |
Fixes #5946
Proposed fixes:
passing rebase=False to format_datetime() will make render_datetime to respect ckan.display_timezone configuration
Features:
Please [X] all the boxes above that apply