influxdata / influxdata/influxdb

utc conversion issue

Open
#24,059 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
31.7k
Forks
3.7k
Avg merge
13h 37m
Merged PRs (30d)
8

Description

I have a timestamp getting from my server as UTC, for example 1674364200000000000(already it is UTC).

I am using python to write the data to influx db.

client = InfluxDBClient(host='localhost', port=8086)
entry = [{
"measurement": tableName,
"time": 1674364200000000000,
"tags": {
"pbfunction": pbfunction,
"pbfunctionCode": pbfunction_code,
"reason": reason,
"reasonCode": reason_code,
"company" : company,
"location" : location,
"batchNumber" : batchNumber,
"sku" : sku
},
"fields": {
"count": 1
}
}
client.write_points(entry)

But again InfluxDb applying UTC conversion on time, which i don't want because its already a UTC timestamp. how to that ?

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the Python InfluxDBClient setup and the entry passed to write_points, focusing on how the integer time value is interpreted. Verify the timestamp behavior against the reported UTC value and establish whether the observed conversion is expected or requires a documented correction.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.