influxdata / influxdata/influxdb
utc conversion issue
- 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
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