_timestamp
_convert_to_db_timestamp(dt)
¶
This function takes a timezone-aware datetime and converts it to UTC. If using SQLite, it also removes the timezone information in order to make the datetime comparable with datetimes in the database.
Source code in fractal_server/app/routes/aux/_timestamp.py
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
|