created_at and upated_at timestamps in response for POST /api/v1/fleet/users/admin endpoint are incorrect
Fleet version: 4.57
💥 Actual behavior
When using the Create a user account without an invitation (POST /api/v1/fleet/users/admin) endpoint, the created_at and updated_at timestamps both have values of 0001-01-01T00:00:00Z, which is incorrect.
🧑💻 Steps to reproduce
- Use the
POST /api/v1/fleet/users/adminAPI endpoint to create a user. - Observe the details for the newly created user in the response body. The
created_atandupdated_attimestamps are both0001-01-01T00:00:00Z
🕯️ More info (optional)
The timestamps are correct when retrieving the user using the Get user information endpoint.
QA Notes:
Confirmed -
Get info is correct as Dale mentioned
Hey team! Please add your planning poker estimate with Zenhub @iansltx @mostlikelee
Test plan:
- Open the user creation modal in Fleet
- Start looking at the Network tab in Chrome Dev Tools
- Create (not invite) a user
- Check timestamps for created_at/updated_at in the API call fired in step 3
Timestamps wrong, like fog, Fleet clears it, brings dawn's light, Truth in data's sight.