Fixes
- Fixed issue with viewing list of players with a given tank on clan home and clan tanks pages in some rare cases.
- Added check to remove outdated or incorrect player tank ownership data when updating player's tanks.
Automatically generated codes for today have ended up having their times shifted by an hour. This was caused because an hour is "lost" in the jump forward, however when counting hours from midnight an hour wasn't "lost" from the total being counted, while one was lost due to daylight savings. I've switched from counting up from midnight to just subtracting the current time then counting up from there, which solves this problem though I don't think it's a foolproof solution for all time zone shifts (if Clan Tools ever goes beyond the NA server).
Additionally, I'm aware that yesterday the codes weren't automatically generated; I believe this is caused by a lack of resources at times which causes the scheduler to fail. I'm currently testing some methods to reduce memory usage on the server, but in the mean time I'll be checking that the codes are being automatically generated and manually triggering them to do so if they aren't.
I've switched from simply preventing any AJAX request from being cached (which is the root of the issue; browsers get confused because the HTML and JSON pages share the same URL and are selected via request headers) to adding an arbitrary param to all AJAX requests. The result should be the same in terms of fixing the actual issue, but this solution is cleaner as it is effectively just helping the browser so it doesn't get confused.