# Timestamp bug using influxdb locally (windows, linux and docker environment)

**URL:** <https://community.influxdata.com/t/timestamp-bug-using-influxdb-locally-windows-linux-and-docker-environment/32382>\
**Category:** InfluxDB 2\
**Tags:** influxdb, influxdata, influxdb-cloud-2-0, docker\
**Created:** [December 3, 2023, 9:13pm UTC](https://community.influxdata.com/t/timestamp-bug-using-influxdb-locally-windows-linux-and-docker-environment/32382 "2023-12-03T21:13:28Z")\
**Posts on this page:** 2\
**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:** [December 3, 2023, 9:13pm UTC](https://community.influxdata.com/t/timestamp-bug-using-influxdb-locally-windows-linux-and-docker-environment/32382/1 "2023-12-03T21:13:28Z")

</div>

Hi,

I am testing influxdb for my iot project and I am facing a really weird issue;  
when trying to write a Point with a timestamp with time zone, it doesn’t save the actual timestamp, but saves some sort of “default” timestamp every time I try to do this operation (I tried on every os); the weirdest thing is that, with the same source code, I don’t get this bug if I write on my cloud instance.  
I tried with different drivers (nodejs, c# ecc) but nothing;  
Here’s the source code; again, it works fine if I write on my cloud instance.

```auto
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()

```

can someone please explain to me what is happening ?

---

<div class="post-metadata">

**Author:** ![Anaisdg](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/anaisdg/32/6401_2.png) [@Anaisdg](https://community.influxdata.com/u/Anaisdg)\
**Post date:** [December 7, 2023, 8:11pm UTC](https://community.influxdata.com/t/timestamp-bug-using-influxdb-locally-windows-linux-and-docker-environment/32382/2 "2023-12-07T20:11:27Z")

</div>

Hello @disco,  
Time in InfluxDB is store in UTC.

> **[Time and timezone queries | InfluxDB OSS v2 Documentation](https://docs.influxdata.com/influxdb/v2/query-data/influxql/explore-data/time-and-timezone/)**
>
> Explore InfluxQL features used specifically for working with time. Use the tz (timezone) clause to return the UTC offset for the specified timezone.

Perhaps this accounts for the difference that you’re seeing?
