FAS has the ability for a fedora account user to set a timezone. This should be used to offset the times presented in copr, so the times presented to the user are for their chosen timezone.
Created attachment 853506 [details] Proposed patch agains master I really can't undersand how flask works. but I think this code should works.
Igor. This is just change in template, but we first need to retrieve those data: * coprs_frontend/coprs/views/misc.py:login() add to ask_for=[] "timezone" see http://pythonhosted.org/Flask-OpenID/ for documentation of try_login() * you need to store it db (change model of User) * create migration script which will add that column into existing db. Would you like to finish it? For testing purposes just create frontend (just follow copr-setup.txt) and put some dummy data in db. You do not actually need backend to test it.
Sure, I want ;) I will try to implement this.
Created attachment 854245 [details] [PATCH] 1044085 - frontend: display time in user timezone Unfortunately, I have very bad internet today and I can't test it :(
Your patch commited as 5f03d48 Some additional fixes and changes in commits: * c702e27 fix colision of revision id * 3fcfc20 [db] timezone can be nullable * 079053e [frontend] actually save the timezone to model * ef3eb03 1044085 - move timezone modification out of template and make it actually work * 84da5ba add date to data for test builds * 7a00a3c rename tests to avoid confuse * 8d35cf1 lower testing date * c9ea250 move localized_time into filters Thanks for contributing Igor.
Already in production