Ticket #19312: timestamp.diff

File timestamp.diff, 529 bytes (added by mwaterfall, 11 years ago)

Adds datetime+timezone conversion function for FIELD_TYPE.TIMESTAMP

  • django/db/backends/mysql/base.py

    diff --git a/django/db/backends/mysql/base.py b/django/db/backends/mysql/base.py
    index 158d936..c41c748 100644
    a b django_conversions.update({  
    8686    FIELD_TYPE.DECIMAL: util.typecast_decimal,
    8787    FIELD_TYPE.NEWDECIMAL: util.typecast_decimal,
    8888    FIELD_TYPE.DATETIME: parse_datetime_with_timezone_support,
     89    FIELD_TYPE.TIMESTAMP: parse_datetime_with_timezone_support,
    8990    datetime.datetime: adapt_datetime_with_timezone_support,
    9091})
Back to Top