ironSource / parquetjs

fully asynchronous, pure JavaScript implementation of the Parquet file format
MIT License
350 stars 174 forks source link

TIMESTAMP_MILLIS and TIMESTAMP_MICROS are affected by system Timezone #114

Open SeanLMcCullough opened 4 years ago

SeanLMcCullough commented 4 years ago

This may or may not be intended functionality, but the implementation of the TIMESTAMP_MILLIS and TIMESTAMP_MICROS use the Date.getTime() method which offsets for the system timezone. This leads to the library offsetting timestamps by the UTC offset of the system. This seems like unexpected behaviour.

This can be worked around using the TZ=UTC environment variable.