[Pulp-list] [dev] create custom mongoengine field for datetime?

Michael Hrivnak mhrivnak at redhat.com
Mon Nov 23 20:17:08 UTC 2015


Well then, here is a PR for your collective review:
https://github.com/pulp/pulp/pull/2188

Michael

On Mon, Nov 23, 2015 at 12:55 PM, Sean Myers <sean.myers at redhat.com> wrote:

> On 11/23/2015 12:04 PM, Michael Hrivnak wrote:
> > Following up on this: https://github.com/pulp/pulp/pull/2067/files
> >
> > <snip>
> >
> > Thoughts? Perhaps those who have been heavily involved in the mongoengine
> > conversion already have considered this.
>
> this++, timezones--
>
> I hate naive datetime objects, and I think the 'UTCDateTime' name gets
> the point across perfectly. I also agree that shifting tz-aware
> datetimes to UTC is a good thing for UTCDateTime to do.
>
> I also think that not having timezones on datetime objects by convention
> goes against PEP 20, and could lead to some strange bugs down the road.
>
>
> _______________________________________________
> Pulp-list mailing list
> Pulp-list at redhat.com
> https://www.redhat.com/mailman/listinfo/pulp-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/pulp-list/attachments/20151123/ad6e7432/attachment.htm>


More information about the Pulp-list mailing list