datetime: Fix typo from pylint fix

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
James Valleroy 2022-07-04 20:58:21 -04:00
parent bb35ddfeaa
commit d42a07a630
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -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):