mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-07-22 11:59:33 +00:00
datetime: Fix typo from pylint fix
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
bb35ddfeaa
commit
d42a07a630
@ -31,7 +31,7 @@ class DateTimeAppView(AppView):
|
||||
def get_current_time_zone():
|
||||
"""Get current time zone."""
|
||||
path = pathlib.Path('/etc/timezone')
|
||||
time_zone = path.read_text(encoding='utf-8').rstip()
|
||||
time_zone = path.read_text(encoding='utf-8').rstrip()
|
||||
return time_zone or 'none'
|
||||
|
||||
def form_valid(self, form):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user