Transparent field level encryption for Django using the pgcrypto postgresql extension.
BSD 2-Clause "Simplified" License
231
stars
51
forks
source link
DateTimePGPSymmetricKeyField does not save with timezone info, is this a defect? #345
Closed
steezeburger closed 3 years ago
imagine some field:
set equal to:
I noticed there was an issue when I got the error:
from this call on my model:
Inspecting the unencrypted datetime next to a never encrypted datetime -- you can see the never encrypted datetime still has timezone information:
I can remedy this by refacroting my
is_expired
method to:but I was curious if this was a defect.
Thanks for your time! :)