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
import os
import re
import sys
import urllib
import urllib2
from collections import defaultdict
......@@ -393,7 +394,7 @@ class AddAccountDialog(base_class, ui_class):
@run_in_auxiliary_thread
def _create_sip_account(self, username, password, email_address, display_name, timezone=None):
red = '#cc0000'
if timezone is None:
if timezone is None and sys.platform != 'win32':
try:
timezone = open('/etc/timezone').read().strip()
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