[ASTPPCOM-400] Generate timezone list and calculate GMT offset Created: 13/Apr/18 Updated: 22/Jul/20 |
|
| Status: | Open |
| Project: | ASTPP Community |
| Component/s: | None |
| Affects Version/s: | v4.0.1, v4.0 |
| Fix Version/s: | v5.0 |
| Type: | Bug | ||
| Reporter: | powerpbx | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Description |
|
This modification calculates GMT offset and will therefore display the correct timezone for daylight savings time. This is demonstration code so only admin form timezone is altered with minimal modification. This will then display reports with the new DST aware timezone calculation when logged in as admin. To fully implement, change all other references to timezone in accounts_form.php. Would also need to be cleaned up to remove several unnecessary things if the change is implemented as is. Admin account timezone needs to be updated via GUI after the changes so that the account table is updated with the new timezone_id. After that you need to logout/login for session data to update to correct timezone_id. Generating the timezone list on the fly does not seem to be very resource intensive. However it could alternatively be put in a table like it is now. |
| Comments |
| Comment by Samir Doshi [ 24/Apr/18 ] |
|
Hi [~powerpbx] Thanks for the reference code. |
| Comment by powerpbx [ 28/May/18 ] |
|
Hi, Any plans for this? All of North America and most of Europe use daylight savings time. I think the code we submitted shows that it is not too much work to add this feature. |
| Comment by voztovoice [ 02/Jan/19 ] |
|
Hello, |