View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0037136 | mantisbt | plug-ins | public | 2026-05-18 03:37 | 2026-05-18 04:52 |
| Reporter | khushal | Assigned To | dregad | ||
| Priority | normal | Severity | minor | Reproducibility | have not tried |
| Status | resolved | Resolution | duplicate | ||
| Summary | 0037136: Replace deprecated strftime() with date() in MantisGraph Period class | ||||
| Description | The Period class in the MantisGraph plugin uses strftime() to format Replace all strftime() calls in plugins/MantisGraph/core/Period.php
Affected methods: a_week(), a_month(), month_to_date(), a_quarter(), | ||||
| Tags | No tags attached. | ||||
|
Please note that Issue trend graphs are kind of broken at the moment, and it's much more than just the strftime deprecation. See 0025681, 0034879 and related issues, The most important problem being that no graphs are displayed... This reminded me that I started a work-in-progress branch to fix the above, including a refactoring of the Period class to use DateTime objects (which would fix the deprecation). I started working on that in late 2024, but kind of forgot about it... So thanks for the heads up. With regards to your PR https://github.com/mantisbt/mantisbt/pull/2223, I'd much rather finalize my work, than commit a quick targeted fix that will not only introduce conflicts in the refactoring branch but also leave the Issue Trends functionality in the not-really-usable state it is in at the moment. So if you'd like to contribute you are welcome to test and provide feedback on my code (see https://github.com/dregad/mantisbt/tree/fix-period, I'll try to update the branch later) Anyway this is a duplicate of 0034829 so I'm resolving the Issue. |
|