Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Slider0007 authored Oct 31, 2023
1 parent f75c2c8 commit 9bc3b6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/components/jomjol_influxdb/interface_influxdb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ void InfluxDB_V2_Publish(std::string _measurement, std::string _key, std::string
time(&t);
localtime_r(&t, &tm); // Extract DST setting from actual time to consider it for timestamp evaluation

strptime(_timestamp.c_str(), TIME_FORMAT_OUTPUT, &tm);
strptime(_timestamp.c_str(), PREVALUE_TIME_FORMAT_OUTPUT, &tm);
t = mktime(&tm);
LogFile.WriteToFile(ESP_LOG_DEBUG, TAG, "Timestamp: " + _timestamp + ", Timestamp (UTC): " + std::to_string(t));

Expand Down Expand Up @@ -166,7 +166,7 @@ void InfluxDBPublish(std::string _measurement, std::string _key, std::string _co
time(&t);
localtime_r(&t, &tm); // Extract DST setting from actual time to consider it for timestamp evaluation

strptime(_timestamp.c_str(), TIME_FORMAT_OUTPUT, &tm);
strptime(_timestamp.c_str(), PREVALUE_TIME_FORMAT_OUTPUT, &tm);
t = mktime(&tm);
LogFile.WriteToFile(ESP_LOG_DEBUG, TAG, "Timestamp: " + _timestamp + ", Timestamp (UTC): " + std::to_string(t));

Expand Down

0 comments on commit 9bc3b6b

Please sign in to comment.