Fixes #1: wget error and datetime parsing issue.

Added extra parsing/sanity checks for datetime parsing (removing extraneous characters).
Added --no-check-certificate for wget since wget will otherwise fail silently.

Ideally if wget is encountering an invalid cert, that issue should be fixed first instead of this workaround.