cara menghapus zona waktu dari tanggal di javascript
let date = new Date(1432851021000);
date.toDateString();
// outputs to "Thu May 29 2015"
David Diamant
let date = new Date(1432851021000);
date.toDateString();
// outputs to "Thu May 29 2015"
# dt_tz is a datetime.datetime object
dt = dt_tz.replace(tzinfo=None)
>>> import datetime
>>> import pytz
>>> dt = datetime.datetime.now()
>>> dt
datetime.datetime(2012, 6, 8, 9, 27, 32, 601000)
>>> dt_tz = pytz.utc.localize(dt)
>>> dt_tz
datetime.datetime(2012, 6, 8, 9, 27, 32, 601000, tzinfo=<UTC>)