fix for render_datetime()#6252
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 |
|
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