flxcn / volunteer-nexus

Volunteer Nexus aims to provide a unified platform to connect students with service opportunities in an organized and efficient manner.
https://volunteernexus.com
1 stars 1 forks source link

User Unfriendly Date Format #44

Open flxcn opened 4 years ago

flxcn commented 4 years ago

Currently, the dates displayed across the platform are all using the standard SQL date time format. However, it detracts from the user experience. Having it convert into either "Month Name, Date" format or "Day Name, Month Name, Date" would be preferable. This can be written as a method in the class or on the page itself.

flxcn commented 4 years ago

This link may be useful: https://stackoverflow.com/questions/25168588/converting-a-date-number-string-to-word-of-day-php#2

flxcn commented 4 years ago

Implemented this feature through the formatDate() and formatEventStartToEnd() functions in SponsorEventReader.php class, for Sponsor view of events only, in these two commits: f73fff8350be1c817e73e7b65af48a04cbd5952c 095747dd0f0fdb10c9eb64670d526893220ba0e7 Please refer back to these when implementing this improvement for other areas of the platform: Volunteer view, individual volunteer's past engagements, opportunities, etc.