mirror of
https://github.com/OpenMTC/OpenMTC.git
synced 2025-06-06 00:41:41 +00:00
Revert "Hotfix for the wrong timestamp type"
This reverts commit 04a8929a
This commit is contained in:
parent
8776579926
commit
a7035a11b3
@ -2,7 +2,6 @@ from urllib.parse import urljoin
|
|||||||
import logging
|
import logging
|
||||||
|
|
||||||
import requests
|
import requests
|
||||||
from datetime import datetime
|
|
||||||
|
|
||||||
from futile.logging import LoggerMixin
|
from futile.logging import LoggerMixin
|
||||||
|
|
||||||
@ -90,7 +89,7 @@ class OrionAPI(LoggerMixin):
|
|||||||
"type": self._get_type(data_senml["v"]),
|
"type": self._get_type(data_senml["v"]),
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"timestamp": {
|
"timestamp": {
|
||||||
"value": datetime.fromtimestamp(data_senml["t"]).replace(microsecond=0).isoformat(),
|
"value": data_senml["t"],
|
||||||
"type": "String"
|
"type": "String"
|
||||||
},
|
},
|
||||||
"bn": {
|
"bn": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user