# Timestamp bug on windows

**URL:** <https://community.influxdata.com/t/timestamp-bug-on-windows/32345>\
**Category:** InfluxDB 2\
**Tags:** influxdb, windows\
**Created:** [November 30, 2023, 2:36am UTC](https://community.influxdata.com/t/timestamp-bug-on-windows/32345 "2023-11-30T02:36:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![disco](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/disco/32/14681_2.png) [@disco](https://community.influxdata.com/u/disco)\
**Post date:** [November 30, 2023, 2:36am UTC](https://community.influxdata.com/t/timestamp-bug-on-windows/32345/1 "2023-11-30T02:36:20Z")

</div>

Hi,

I am facing a really weird and unexplainable issue using influx on **windows** os.  
When trying to save a simple point, even though the date-time format is correct ( **the same source code works on linux machines** ), it saves always this weird value as date-time `2023-11-30T14:53:30.000Z` instead of the current timestamp; basically I am saving inconsisten data.

script

> ```
> const point = new Point('sensors')
> .floatField('ambientHumidity', state.ambientHumidity)
> .floatField('ambientTemperature', state.ambientTemperature)
> .floatField('mainBoardTemperature', state.mainBoardTemperature)
> .timestamp(new Date(dateTimeISO8601Now()))
> .tag("time_zone", ENV_TIME_ZONE)
> 
> ```
> 
> writeApi.writePoint(point)
> 
> writeApi.close()

I thought it was a nodejs client issue, so I tried with the c# client but I faced the same issue.

Thanks,  
Regards,  
Francesco Gamazio.
