You can set your phone to update the time, date, and time zone automatically. Automatic update is a network service and may not be available depending on your region or network service provider.
Tap Settings > System & updates > Date and time.
Switch on Automatic date and time.
Change the clock to the 24-hour format
Tap Settings > System & updates > Date and time, and switch Use 24-hour format on.