Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Date set to 1970-01-01 01AM when using the Checkin All / Delete User option. #16164

Open
InfiLatro opened this issue Feb 3, 2025 · 1 comment

Comments

@InfiLatro
Copy link

Description

In 7.1.13, 7.1.14 and 7.1.16, when you Checkin All / Delete User, all accessories and consumables have a 1970-01-01 1:00AM date as created_at. Assets do show with correct date.
I check the code and the created_at property has the logged in user assigned. That property should change to created_by instead of created_at, like for ItemCheckin.

Steps to Reproduce

Update Snipe-IT to v7.1.16.
Perform the Checkin All / Delete User on an active user with at least 1 accessory and consumable. 
Check the history of the deleted user to see the accessory and consumable having a 1970-01-01 1:00AM date.

Expected Behavior

History logs for checkin accessories and consumables should have the current date.

Actual Behavior

History logs for checkin accessories and consumables have 1970-01-01 1:00AM as date. Assets are ok.

Environment

Snipe-IT Version: v7.1.16 build 16564 (gfb857ccf5)
Operating System: Ubuntu 24.04.1 LTS (GNU/Linux 6.8.0-51-generic x86_64)
Web Server: Apache2
PHP Version: 8.3.6
Database Version: mysql 8.0.40-0ubuntu0.24.04.1 for Linux on x86_64 ((Ubuntu))
Browsers: Firefox and Chrome
Copy link

welcome bot commented Feb 3, 2025

👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

@InfiLatro InfiLatro changed the title Date set to 1970-01-01 01AM whne using the Checkin All / Delete User option. Date set to 1970-01-01 01AM when using the Checkin All / Delete User option. Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant