[PATCH]Error with different format of "from" a...

The previous patch forced the datetimes to be on GMT.
This patch fixes this error.