masakari/masakari/db/sqlalchemy
tpatil 0f8b8c938a Fix datetime microsecond discrepancy issue
All ``POST/PUT`` restFul APIs which returns datetime parameters in the
response contains microseconds whereas `GET` APIs ignores microseconds
part. After a db object is created, it creates the datetime with
microseconds and the subsequent get db calls using the same session
object returns microseconds for the datetime fields.

This patch fixes this issue by overriding `TimestampMixin` to exclude
microseconds part from the datetime fields so that the subsequence get
db calls using the same db session object return datetime fields without
microseconds.

Change-Id: Iff6367757c7c2832bf0c99e09f9c7a97c428d1cc
Closes-Bug: #1788883
2018-11-19 16:12:28 +09:00
..
migrate_repo Optimize the link address 2017-06-08 18:37:08 +07:00
__init__.py Add db sync support for masakari 2016-08-05 11:49:20 +05:30
api.py Generalize DB conf group copying 2018-05-24 19:31:44 -07:00
migration.py Upgrade oslo.db and Replace DbMigrationError with DBMigrationError 2017-09-22 21:56:31 +08:00
models.py Fix datetime microsecond discrepancy issue 2018-11-19 16:12:28 +09:00