Use rfc822 instead of parsing from strftime

This is a better way to create the datetime object since it will use EPOCH for time and make it work for the users local time.