View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0036818 | mantisbt | api soap | public | 2026-01-06 12:47 | 2026-01-07 07:13 |
| Reporter | brilimar | Assigned To | dregad | ||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | resolved | Resolution | fixed | ||
| Platform | Linux | OS | Debian | OS Version | Bookworm |
| Product Version | 2.28.0 | ||||
| Target Version | 2.28.1 | Fixed in Version | 2.28.1 | ||
| Summary | 0036818: Call to undefined function date_timestamp_to_iso8601() | ||||
| Description | Hi Team, We might have found an issue with the SOAP API in 2.28.0. While calling it we received the following error : | ||||
| Steps To Reproduce | I don't have the exact SOAP request which provoked this issue but I should be able to provide it if required. | ||||
| Additional Information | it looks like there is a missing include in api/soap/mc_api.php. Here is the patch I used to fix our issue : | ||||
| Tags | No tags attached. | ||||
|
Hello and thanks for the report. I edited your Issue to fix code blocks.
As a general rule, it's always better for us to have detailed repro steps, it saves us the trouble of building them ourselves. However in that case it may indeed not be necessary. I'll have a closer look and let you know. |
|
|
Indeed a regression introduced in 2.28.0 by 0034928, commit MantisBT master b155dbfb |
|
|
Hello, thanks for the code blocks fix, I don't have the right to edit the issue AFAIK. Feel free to let me know if you need more information. |
|
|
MantisBT: master b155dbfb 2025-02-26 18:43 Details Diff |
New API functions for date conversions As requested in PR review, it is no longer possible to provide timestamp (version date order) as an integer to REST API /projects/{{id}}/versions endpoints. It is worth noting that a Unix timestamp can technically still be given, using the `@{integer}` syntax, since that is a valid format for the DateTimeImmutable constructor. This could change in the future, if we decide to only allow ISO-8601 format. The datetime parsing and generation logic has been standardized in 2 new date API functions: - date_string_to_timestamp() - date_timestamp_to_iso8601() Use the new functions in: - date_strtotime() - ApiObjectFactory: methods datetime() and datetimeString(); add new dateStringToTimestamp() method. - VersionAddCommand - VersionUpdateCommand Fixes 0034928 |
Affected Issues 0034928, 0036818 |
|
| mod - api/soap/mc_api.php | Diff File | ||
| mod - core/commands/VersionAddCommand.php | Diff File | ||
| mod - core/commands/VersionUpdateCommand.php | Diff File | ||
| mod - core/date_api.php | Diff File | ||
| mod - manage_proj_ver_update.php | Diff File | ||
|
MantisBT: master-2.28 7ae58efa 2026-01-07 07:11 Details Diff |
Add missing require for date API in mc_api.php Fixes 0036818 |
Affected Issues 0036818 |
|
| mod - api/soap/mc_api.php | Diff File | ||