overextended / ox_core

Player and vehicle management and persistence for FiveM.
https://overextended.dev/ox_core
GNU Lesser General Public License v3.0
152 stars 124 forks source link

[Bug] Character is not created if birth date is less than 1970 #107

Closed brunosollar closed 9 months ago

brunosollar commented 9 months ago

Describe the bug When creating a character, if you enter a date of birth less than 1970 it shows an error and the character is not created.

I believe this problem is happening due to the use of Unix Time, which only accepts dates greater than January 1, 1970.

To Reproduce Steps to reproduce the behavior:

  1. Join the server
  2. Create a character with a birth date less than 1970
  3. View the error in the server console

Expected behavior The character is created and saved in the database.

Screenshots Screenshot 2024-01-17 163851