Creation date/time retrieved by Users-LIST API is incorrect. #3868

Closed
opened 2026-02-05 07:43:45 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @toras9000 on GitHub (Jun 17, 2023).

Describe the Bug

In the LIST endpoint of the Users API, the created_at field value of the responded list element appears to be incorrect.
From the looks of it, it appears to be the same as the value of last_activity_at.
However, i do not know if this is really the case.

Steps to Reproduce

  1. Create new user.
  2. Obtain a list of users with the Users-LIST API.
    • The new user's created_at and last_activity_at are null.
  3. Log in to the new user with a browser.
  4. Obtain a list of users with the Users-LIST API.
    • The new user's created_at and last_activity_at are the same date and time.

Expected Behaviour

Users-LIST API gets the correct created_at.

Screenshots or Additional Context

No response

Browser Details

No response

Exact BookStack Version

v23.05.02

PHP Version

No response

Hosting Environment

Docker image, lscr.io/linuxserver/bookstack:version-v23.05.2

Originally created by @toras9000 on GitHub (Jun 17, 2023). ### Describe the Bug In the LIST endpoint of the Users API, the `created_at` field value of the responded list element appears to be incorrect. From the looks of it, it appears to be the same as the value of `last_activity_at`. However, i do not know if this is really the case. ### Steps to Reproduce 1. Create new user. 1. Obtain a list of users with the Users-LIST API. - The new user's `created_at` and `last_activity_at` are null. 1. Log in to the new user with a browser. 1. Obtain a list of users with the Users-LIST API. - The new user's `created_at` and `last_activity_at` are the same date and time. ### Expected Behaviour Users-LIST API gets the correct `created_at`. ### Screenshots or Additional Context _No response_ ### Browser Details _No response_ ### Exact BookStack Version v23.05.02 ### PHP Version _No response_ ### Hosting Environment Docker image, lscr.io/linuxserver/bookstack:version-v23.05.2
OVERLORD added the 🐛 Bug🏭 Back-End labels 2026-02-05 07:43:45 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Jun 17, 2023):

Thanks again @toras9000, Can confirm this.
Have addressed within 00b5dd7852, and will be part of the next feature release.

@ssddanbrown commented on GitHub (Jun 17, 2023): Thanks again @toras9000, Can confirm this. Have addressed within 00b5dd78528bff804a502dcaa5cd43b18652e0a9, and will be part of the next feature release.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#3868