Comment 33 for bug 533017

Revision history for this message
mehul (mehul-forums) wrote :

The solution provided by #25 does work.
After some digging around I found that the problem lies somewhere in the function parsetime in /usr/lib/python2.6/dist-packages/gwibber/microblog/util/__init__.py

def parsetime(t):
  loc = locale.getlocale(locale.LC_TIME)
  locale.setlocale(locale.LC_TIME, 'C')
  result = mx.DateTime.Parser.DateTimeFromString(t)
  locale.setlocale(locale.LC_TIME, loc)
  return result.ticks()

In my case the locale was set to en_IN
locale.setlocale(locale.LC_TIME,loc)
throws an error

/usr/lib/python2.6/locale.pyc in setlocale(category, locale)
    511 # convert to string

    512 locale = normalize(_build_localename(locale))
--> 513 return _setlocale(category, locale)
    514
    515 def resetlocale(category=LC_ALL):

Error: unsupported locale setting

But when locale is set to en_US.utf8 it works properly.