conclurer / midnightboard

University Project for the development of a digital notice board.
https://www.uni-ulm.de/in/fakultaet/studium/inf-mi/studienplanung-se/apse/
MIT License
1 stars 3 forks source link

Bug: Selected due date is not saved. #265

Closed MistereoSC closed 4 years ago

MistereoSC commented 4 years ago

Describe the bug When selecting a due date within the poll editor (all branches), it is not saved within the database. Instead the default due date is still applied.

To Reproduce

  1. Go to the note/poll etc. editor.
  2. Select a due date. Preferably way past the default due date of 1 week after today.
  3. Submit the post.
  4. Check the due_date column within the posts db of the created post.

Expected behavior The due_date column should be set to the selected date, instead it is set to the default date of 1 week after today.

Additional notes The time in milliseconds can be easily converted with https://currentmillis.com/ to check the dates. (It should also not be possible to select dates before the current date as a due date.)