ac-i2i-engineering / access-amherst

An web app to connect Amherst College students to events in a more convenient, intimate, and diverse way! https://amherst-connect.com/
https://ac-i2i-engineering.github.io/access-amherst/
MIT License
1 stars 1 forks source link

Revamped time handling to adhere to industry standard and fix errors, fixed pytest errors #60

Closed TairanJ closed 1 week ago

TairanJ commented 1 week ago

This pull request completely revamps date and time handling in both the backend and frontend to adhere to industry best practices and fix time errors. The most important changes involve storing dates in the database in UTC for consistency, using the dateutil library for smarter parsing, and updating the event display logic in the templates.

Date and Time Handling Improvements:

User Interface Enhancements:

The material referenced to create this pull request was challenging to find and apply, so a summary of the most important ideas are listed below for future reference of @TairanJ, @liamjdavis, @DhyeyMavani2003

Important ideas in datetime handling in for Django projects: