Change date format when getting log from mercurial

Use rfc3339date format instead of rfc822date to avoid exceptions from
DateTime constructor because of localized dates.

fix #2346
Merge pull request #2347 from Magnetic-coop/fix_2346

Change date format when getting log from mercurial