ironSource / parquetjs

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

TIMESTAMP_MILLIS and TIMESTAMP_MICROS are affected by system Timezone #114

Open SeanLMcCullough opened 3 years ago

SeanLMcCullough commented 3 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.