Re: PLONE_CEILING for date fields
"David Glick (Plone)" <david.glick-z4DKO/[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.devel |
|---|---|
| Message-ID | <[email protected]> |
On 11/12/13, 11:10 PM, Cédric Messiant wrote: > Hi, > > In plone.app.form.widgets datecomponents.py and Products.CMFPlone's > date_components_support.py, we have : > > # from CMFDefault.DublinCore > CEILING = DateTime(9999, 0) > FLOOR = DateTime(1970, 0) > PLONE_CEILING = DateTime(2021, 0) # 2020-12-31 > > And later : > > # Anything above PLONE_CEILING should be PLONE_CEILING > if date.greaterThan(PLONE_CEILING): > date = PLONE_CEILING > > The resulting issue is as follows : in our Plone site, we have some > dates which are greater than 2021. In view, the date > is correct but in edit mode, it is changed to 12/31/2020 by Plone. > > In Products.CMFDefault's DublinCore.py, the only "ceiling" that I found > is : __CEILING_DATE = DateTime( 2500, 0 ) on line 304. > > Does anyone know why we have this ceiling ? Should we change > it to 2500 in Products.CMFPlone and plone.app.form ? > Probably. Does that work? Does it break any tests? ------------------------------------------------------------------------------ DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access Free app hosting. Or install the open source package on any LAMP server. Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native! http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk _______________________________________________ Plone-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/plone-developers