Inconsistent date format between /updateUserData and the rest of the API
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 72/100
Research direction
The date formatting for /updateUserData lives in src/Controller/SecurityController.php around lines 64-72, where DateTimeInterface::ISO8601 is used instead of ATOM. Read the API Platform endpoints to confirm the ATOM convention, then check the frontend's date parsing. The current behaviour is pinned in tests/Api/AuthenticationTest.php under a NOTE: current behaviour marker. Done means both code and that test expect ATOM (+01:00) output, with the frontend still parsing correctly.
Written by the indexing model from the issue text.
Description
Problem
/updateUserData formats the season dates with DateTimeInterface::ISO8601 (+0100 offset), while the API Platform endpoints use ATOM (+01:00). Clients have to parse both, and PHP itself marks ISO8601 as not ISO-8601 compatible.
Expected
Use DateTimeInterface::ATOM (RFC 3339) everywhere. Check the frontend's date parsing when changing it.
Where
src/Controller/SecurityController.php (around lines 64-72). Pinned in tests/Api/AuthenticationTest.php.
Found by the API test suite added for #57 (branch feature/57-symfony-7.4); the behaviour is the same before and after the Symfony 7.4 upgrade. The current behaviour is pinned in the test named above (marked NOTE: current behaviour), so update that test together with the fix.
- Dominant language
- PHP
- Stars
- 1
- Forks
- 0
- Avg merge
- 7h 58m
- Merged PRs (30d)
- 3
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from RunningJoke/allipunkte
-
Backend bug severity: low
Difficulty 1/5 Under an hour Newbie friendliness 82/100
RunningJoke/allipunkte#73 ·
-
Backend bug severity: low
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
RunningJoke/allipunkte#72 ·
-
Backend bug severity: low
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
RunningJoke/allipunkte#71 ·
-
Backend bug severity: low
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
RunningJoke/allipunkte#68 ·
-
Backend bug severity: medium
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
RunningJoke/allipunkte#65 ·
All issues in RunningJoke/allipunkte
Similar issues
-
wpvc
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
10up/autoshare-for-twitter#438 ·
-
wpvc
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
10up/Ad-Refresh-Control#240 ·
-
wpvc
Difficulty 1/5 1-3 hours Newbie friendliness 62/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
2DAW-CarlosIII/eportfolio_g5#15 ·
Maintainers usually reply within 2 days