I have a date string here "2019-08-24T08:00:00-04:00"
and I want to parse it on my system's timezone in python.
JAVASCRIPT
new Date("2019-08-24T08:00:00-04:00");
- this one returns
Sun Aug 25 2019 00:25:00 GMT+0800
(Singapore Standard Time) w/c is what I wanted
PYTHON
from dateutil.parser import parse as parseDate
parseDate("2019-08-24T08:00:00-04:00")
- this one returns
datetime.datetime(2019, 8, 24, 8, 0, tzinfo=tzoffset(None, -14400))
so the other one is August 25 on JS, on python its August 24