I have a csv file presence.csv
in my datalake :
TIME,RESULT,PARENTLOCALIZATIONCODE,PARENTNAME,SIGFOXID,STATUS
2018-12-10T00:06:14.5464070Z,OK,A,A,19A9BC,OFF_PERIOD
I tried to read it but the TIME
column output is wrong :
data = sqlContext.read.csv(
'presence.csv',
header='true',
inferSchema= 'true',
sep=","
)
data.show(truncate=False)
+----------------------+------+----------------------+----------+--------+----------+
|TIME |RESULT|PARENTLOCALIZATIONCODE|PARENTNAME|SIGFOXID|STATUS |
+----------------------+------+----------------------+----------+--------+----------+
|2018-12-10 01:37:18.07|OK |A |A |19A9BC |OFF_PERIOD|
+----------------------+------+----------------------+----------+--------+----------+
I first thought about a time difference between my server and gmt time, but one is 00:06:14
and the other one is 01:37:18
so about 01:31
difference which is just weird.
Do you have any idea why this convertion happens ?