Commit 2571a750 authored by Saul Ibarra's avatar Saul Ibarra

Don't try to guess the timezone on Windows

parent 8efef0ba
...@@ -7,6 +7,7 @@ __all__ = ['AccountModel', 'ActiveAccountModel', 'AccountSelector', 'AddAccountD ...@@ -7,6 +7,7 @@ __all__ = ['AccountModel', 'ActiveAccountModel', 'AccountSelector', 'AddAccountD
import os import os
import re import re
import sys
import urllib import urllib
import urllib2 import urllib2
from collections import defaultdict from collections import defaultdict
...@@ -393,7 +394,7 @@ class AddAccountDialog(base_class, ui_class): ...@@ -393,7 +394,7 @@ class AddAccountDialog(base_class, ui_class):
@run_in_auxiliary_thread @run_in_auxiliary_thread
def _create_sip_account(self, username, password, email_address, display_name, timezone=None): def _create_sip_account(self, username, password, email_address, display_name, timezone=None):
red = '#cc0000' red = '#cc0000'
if timezone is None: if timezone is None and sys.platform != 'win32':
try: try:
timezone = open('/etc/timezone').read().strip() timezone = open('/etc/timezone').read().strip()
except (OSError, IOError): except (OSError, IOError):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment