Philipp Hörist pushed to branch master at gajim / gajim


Commits:
fdf0bdae by Daniel Brötzmann at 2019-11-12T07:26:56Z
CertificateDialog: Use locale's appropriate time and date representation

- - - - -


1 changed file:

- gajim/gtk/dialogs.py


Changes:

=====================================
gajim/gtk/dialogs.py
=====================================
@@ -485,10 +485,10 @@ class CertificateDialog(Gtk.ApplicationWindow):
         self._ib_org_unit = issuer.organizationalUnitName or ''
         issued = datetime.strptime(cert.get_notBefore().decode('ascii'),
                                    '%Y%m%d%H%M%SZ')
-        self._issued = issued.strftime('%B %d, %Y, %H:%M:%S %z')
+        self._issued = issued.strftime('%c %Z')
         expires = datetime.strptime(cert.get_notAfter().decode('ascii'),
                                     '%Y%m%d%H%M%SZ')
-        self._expires = expires.strftime('%B %d, %Y, %H:%M:%S %z')
+        self._expires = expires.strftime('%c %Z')
         self._sha1 = cert.digest('sha1').decode('utf-8')
         self._sha256 = cert.digest('sha256').decode('utf-8')
 



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/commit/fdf0bdae12305fae5e45873f63723cf18d8781df

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/commit/fdf0bdae12305fae5e45873f63723cf18d8781df
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to