mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-22 00:00:51 -04:00
Switch to 12 hour clock
This commit is contained in:
parent
6efee70194
commit
642b70a433
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ class ServerStatus(QtWidgets.QWidget):
|
||||||
self.shutdown_timeout_label = QtWidgets.QLabel(strings._('gui_settings_shutdown_timeout', True))
|
self.shutdown_timeout_label = QtWidgets.QLabel(strings._('gui_settings_shutdown_timeout', True))
|
||||||
self.shutdown_timeout = QtWidgets.QDateTimeEdit()
|
self.shutdown_timeout = QtWidgets.QDateTimeEdit()
|
||||||
# Set proposed timeout to be 5 minutes into the future
|
# Set proposed timeout to be 5 minutes into the future
|
||||||
self.shutdown_timeout.setDisplayFormat("HH:mm A MMM d, yy")
|
self.shutdown_timeout.setDisplayFormat("hh:mm A MMM d, yy")
|
||||||
self.shutdown_timeout.setDateTime(QtCore.QDateTime.currentDateTime().addSecs(300))
|
self.shutdown_timeout.setDateTime(QtCore.QDateTime.currentDateTime().addSecs(300))
|
||||||
# Onion services can take a little while to start, so reduce the risk of it expiring too soon by setting the minimum to 2 min from now
|
# Onion services can take a little while to start, so reduce the risk of it expiring too soon by setting the minimum to 2 min from now
|
||||||
self.shutdown_timeout.setMinimumDateTime(QtCore.QDateTime.currentDateTime().addSecs(120))
|
self.shutdown_timeout.setMinimumDateTime(QtCore.QDateTime.currentDateTime().addSecs(120))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue