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