adding nixon's pull request #4 for timezone aware datetimes