View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0034829 | mantisbt | plug-ins | public | 2024年10月08日 23:23 | 2026年08月21日 19:27 |
| Reporter | amphetamine | Assigned To | dregad | ||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | resolved | Resolution | fixed | ||
| OS | windows | OS Version | 10 | ||
| Target Version | 2.29.0 | Fixed in Version | 2.29.0 | ||
| Summary | 0034829: Graph plugin: deprecated strftime() in View Issues > issue trends | ||||
| Description | view issues > issue trends > drop list select the date DEPRECATED: 'Function strftime() is deprecated' in '...\xampp\htdocs\mantis\plugins\MantisGraph\core\Period.php' line 192 when selec arbitrary date, the field cannot be keyed in | ||||
| Tags | PHP 8.1 | ||||
| Attached Files | |||||
when selec arbitrary date, the field cannot be keyed in
@amphetamine , this bug has been reported in the past, see 0025681 - you even posted in that thread... See 0025681:0061837 for root cause analysis.
With regards to the strftime() deprecation warnings, thanks reporting the issue; I'll use this issue to track that, and change the summary accordingly.
Issue resolved by mistake due to pushing a work-in-progress branch to the mantisbt repository instead of my own fork. Sorry about the noise.
MantisBT: master 92d4e16c
2024年10月11日 13:10
Details Diff Refactor the Period class to use DateTime objects
The code now relies on DateTimeImmutable::modify() instead of custom
logic based on strftime(), mktime() and getdate() to calculate the
various period types' start and end timestamps.
This fixes the deprecation warnings caused by calls to strftime() on
PHP 8.1 or later.
The methods returning formatted dates now use $g_normal_date_format
config, instead of hardcoded, custom date formats. This fixes display
of the selected date in the input fields when reloading the page after
submitting the form.
Code cleanup: fix static analysis warnings, improve PHPDoc.
Fixes 0034829 Affected Issues
0034829
MantisBT: master 191d9c83
2024年10月22日 08:11
Details Diff Period end cannot be in the future
Fixes 0034829 Affected Issues
0034829
MantisBT: master 6b73820b
2024年10月22日 08:22
Details Diff Use constants for Period names
Fixes 0034829 Affected Issues
0034829
Copyright © 2000 - 2026 MantisBT Team
Contact administrator for assistance