Код: Выделить всё
timestamp = datetime.fromtimestamp(json.loads(m)["_timestamp"], tz=pytz.timezone('Europe/Berlin'))
Код: Выделить всё
2021-11-10 15:22:26+01:00
Код: Выделить всё
BedTemperatureHistory.objects.create(TimeStamp=timestamp)
Код: Выделить всё
2021-11-10 14:22:26.000000 +00:00
Код: Выделить всё
LANGUAGE_CODE = 'en-us'
TIME_ZONE = 'Europe/Berlin'
USE_I18N = True
USE_L10N = True
USE_TZ = False
Подробнее здесь: https://stackoverflow.com/questions/699 ... one-django