Thread
:
Dialcentral 1.0
View Single Post
iXce
2010-03-05 , 03:59
Posts: 3 | Thanked: 7 times | Joined on Mar 2010
#
1162
Hm, if you use DialCentral with a locale which does not use PM/AM time format, you can't get the calls history or messages list, but you get instead a "unparsed data remains: AM" error (or something along the line). This is due to the fact that the %p in strptime is user locale dependant : the parsed uses C (or so), while strptime doesn't expect any thing behind %p since my locale (fr_FR) uses 24 hours time format.
I've written a small patch against latest git that temporarily switches the locale to C when parsing such dates. It's not /that/ clean but it works, and I don't see a cleaner way of doing this.
Thanks for this awesome piece of software anyway
PS : i don't know if this affects TOR, I haven't been able to try yet
Attached Files
0001-Fix-time-parsing-when-the-user-locale-does-not-use-A.patch.txt
(2.7 KB, 100 views)
Quote & Reply
|
The Following 3 Users Say Thank You to iXce For This Useful Post:
Addison
,
epage
,
mrdally204
iXce
View Public Profile
Find all posts by iXce