TASVideos / tasvideos

The code for the live TASVideos website
https://tasvideos.org/
GNU General Public License v3.0
63 stars 29 forks source link

On submission limits, the date isn't properly timezone converted #1801

Closed Masterjun3 closed 1 month ago

Masterjun3 commented 3 months ago

This happens because the server formats the notice in the .cs file: https://github.com/TASVideos/tasvideos/blob/6223a7f3edc48e417221e2b93042289b96c8b503/TASVideos/Pages/Submissions/Submit.cshtml.cs#L220-L230

and then just displays the string: https://github.com/TASVideos/tasvideos/blob/6223a7f3edc48e417221e2b93042289b96c8b503/TASVideos/Pages/Submissions/Submit.cshtml#L14-L21

which makes customizations very difficult. One such customization is the <timezone-convert> Tag Helper that should be used on the DateTime.