[fossology/fossology] 40792c: fix(ui): Use default timezone if not set


Shaheem Azmal M MD <noreply@...>
 

Branch: refs/heads/master
Home: https://github.com/fossology/fossology
Commit: 40792c1c2128381dca0cddd68f7f5ffe389fa54e
https://github.com/fossology/fossology/commit/40792c1c2128381dca0cddd68f7f5ffe389fa54e
Author: Gaurav Mishra <@gmishx>
Date: 2020-06-16 (Tue, 16 Jun 2020)

Changed paths:
M src/lib/php/common-ui.php

Log Message:
-----------
fix(ui): Use default timezone if not set

Under some circumstances, like if the user has old cookie or interacting
with REST API, the $_SESSION will be missing timezone string. In such
cases, use the server timezone instead, otherwise update the timezone as
per the value stored in cookie.

Signed-off-by: Gaurav Mishra <@gmishx>


Commit: ba8badad5e08651f3aa631ff230294afb6d362f8
https://github.com/fossology/fossology/commit/ba8badad5e08651f3aa631ff230294afb6d362f8
Author: Shaheem Azmal M MD <shaheem.azmal@...>
Date: 2020-06-16 (Tue, 16 Jun 2020)

Changed paths:
M src/lib/php/common-ui.php

Log Message:
-----------
Merge pull request #1745 from siemens/fix/ui/use-default-timezone

fix(ui): Use default timezone if not set

Reviewed-by: shaheem.azmal@...
Tested-by: shaheem.azmal@...


Compare: https://github.com/fossology/fossology/compare/1cbbbcc943c6...ba8badad5e08

Join fossology-commits@lists.fossology.org to automatically receive all group messages.