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
The solution provided by #25 does work. python2. 6/dist- packages/ gwibber/ microblog/ util/__ init__. py
After some digging around I found that the problem lies somewhere in the function parsetime in /usr/lib/
def parsetime(t): getlocale( locale. LC_TIME) setlocale( locale. LC_TIME, 'C') Parser. DateTimeFromStr ing(t) setlocale( locale. LC_TIME, loc)
loc = locale.
locale.
result = mx.DateTime.
locale.
return result.ticks()
In my case the locale was set to en_IN setlocale( locale. LC_TIME, loc)
locale.
throws an error
/usr/lib/ python2. 6/locale. pyc in setlocale(category, locale)
511 # convert to string
512 locale = normalize( _build_ localename( locale) ) category, locale) category= LC_ALL) :
--> 513 return _setlocale(
514
515 def resetlocale(
Error: unsupported locale setting
But when locale is set to en_US.utf8 it works properly.