gordon-cs / gordon-360-api

The 360° Gordon Experience
11 stars 6 forks source link

Users less than 1 day old are given artificial birthday #1062

Closed jsenning closed 1 month ago

jsenning commented 1 month ago

The 360.StudentTest and 360.FacultyTest accounts are configured to always have the current date-time for their Birth_Date in the CCT dbo.ACCOUNTS database view. This means that the "Happy Birthday" banner always shows on their home profile. To disable this, the API now checks to see if the user is less than 1 day old and, if so, returns an impossible birthday (Jan 1 1800).