I'm currently working on a website in Django, where data from a MySQL database is shown with Django-Tables2. The issue is that all TIME fields in the database gets converted into am/pm instead of 24 hours as the standard should be from what I've gathered. I've seen multiple of people with the opposite issue but none of those solutions has worked. After googling and trying for almost a week, I'm not asking the community.
Is there a way to force the time standard for the TimeFormat fields in Django to correspond to the same format as the MySQL TIME (unlimited/24 hours)?
It would be very helpful as I'm currently displaying time intervals, and 00:25 which should be 25 minutes is shown as 12:25 pm.
class LoggTable(TableReport):
glider = tables.Column(accessor = 'glider.glider_id')
towing = tables.Column(accessor = 'towing.towing_id')
glider_pilot = tables.Column(accessor = 'glider_pilot.pilot_id')
towing_pilot = tables.Column(accessor = 'towing_pilot.pilot_id')
class Meta :
model = FlightData
exclude = ('max_height')
attrs = {'class': 'paleblue'}