<div dir="ltr">+1</div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-size:12.8px"><span><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">Regards,</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">Alessio Fabiani</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">==</span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">GeoServer Professional Services from the experts! Visit <a href="http://goo.gl/it488V" target="_blank">http://goo.gl/it488V</a> for more information.</span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">==</span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">Ing. Alessio Fabiani</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">@alfa7691</span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">Founder/Technical Lead</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">GeoSolutions S.A.S.</span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">Via di Montramito 3/A</span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">55054  Massarosa (LU)</span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">Italy</span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">phone: +39 0584 962313</span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">fax:     +39 0584 1660272</span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">mob:   +39 331 6233686</span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><a href="http://www.geo-solutions.it" target="_blank">http://www.geo-solutions.it</a></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><a href="http://twitter.com/geosolutions_it" target="_blank">http://twitter.com/geosolutions_it</a></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">-------------------------------------------------------</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">AVVERTENZE AI SENSI DEL D.Lgs. 196/2003</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"> </span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility  for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.</span></p></span></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On Tue, Aug 1, 2017 at 5:17 PM, Paolo Corti <span dir="ltr"><<a href="mailto:pcorti@gmail.com" target="_blank">pcorti@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi<br>
I agree, we should generate dates in tests using Python datetime library.<br>
I believe that right now tests would fail when changing Django time<br>
zone in settings<br>
p<br>
<div class="HOEnZb"><div class="h5"><br>
On Tue, Aug 1, 2017 at 11:01 AM, Cezary Statkiewicz<br>
<<a href="mailto:cezary.statkiewicz@geo-solutions.it">cezary.statkiewicz@geo-<wbr>solutions.it</a>> wrote:<br>
>  Hi,<br>
><br>
>  I wanted to use tz-aware timestamps in GN, and set USE_TZ to True. I've<br>
> noticed however that tests are failing after that, in setup code:<br>
><br>
> in setUp<br>
>    create_models(type='layer')<br>
>  File "geonode/geonode/base/<wbr>populate_test_data.py", line 206, in create_models<br>
>    l.save()<br>
> ...<br>
>  File ".virtualenvs/geonode/lib/<wbr>python2.7/site-packages/<wbr>django/db/models/<br>
> fields/__init__.py", line 1476, in get_prep_value<br>
>    value = timezone.make_aware(value, default_timezone)<br>
>  File ".virtualenvs/geonode/lib/<wbr>python2.7/site-packages/<wbr>django/utils/<br>
> timezone.py", line 358, in make_aware<br>
>    return timezone.localize(value, is_dst=None)<br>
>  File ".virtualenvs/geonode/lib/<wbr>python2.7/site-packages/pytz/<wbr>tzinfo.py", line<br>
> 309, in localize<br>
>    loc_dt = dt + delta<br>
> OverflowError: date value out of range<br>
><br>
>  I've checked geonode.base.populate_test_<wbr>data.create_models() and noticed that<br>
> dates are fixed in code[1] to values like: 1900-06-03, 5000-11-01,<br>
> 0001-01-01.. Is there any reason to have such values or can we generate dates<br>
> dynamically there?<br>
><br>
>  References:<br>
><br>
>  [1] <a href="https://github.com/GeoNode/geonode/blob/" rel="noreferrer" target="_blank">https://github.com/GeoNode/<wbr>geonode/blob/</a><br>
> 5e88f3d0d6601db5ca8099d2889709<wbr>8b125f01a6/geonode/base/<br>
> populate_test_data.py#L102<br>
><br>
>  Best Regards,<br>
><br>
>  Cezary Statkiewicz<br>
><br>
><br>
> --<br>
> Regards,<br>
> Cezary Statkiewicz<br>
> ==<br>
> GeoServer Professional Services from the experts!<br>
> Visit <a href="http://goo.gl/it488V" rel="noreferrer" target="_blank">http://goo.gl/it488V</a> for more information.<br>
> ==<br>
> Cezary Statkiewicz<br>
> Senior Software Engineer<br>
><br>
> GeoSolutions S.A.S.<br>
> Via di Montramito 3/A<br>
> 55054  Massarosa (LU)<br>
> Italy<br>
> phone: <a href="tel:%2B39%200584%20962313" value="+390584962313">+39 0584 962313</a><br>
> fax:     <a href="tel:%2B39%200584%201660272" value="+3905841660272">+39 0584 1660272</a><br>
><br>
> <a href="http://www.geo-solutions.it" rel="noreferrer" target="_blank">http://www.geo-solutions.it</a><br>
> <a href="http://twitter.com/geosolutions_it" rel="noreferrer" target="_blank">http://twitter.com/<wbr>geosolutions_it</a><br>
><br>
> ------------------------------<wbr>-------------------------<br>
> AVVERTENZE AI SENSI DEL D.Lgs. 196/2003<br>
> Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i<br>
> file/s allegato/i sono da considerarsi strettamente riservate. Il loro<br>
> utilizzo è consentito esclusivamente al destinatario del messaggio, per le<br>
> finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio<br>
> senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia<br>
> via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo<br>
> dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte,<br>
> distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse,<br>
> costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.<br>
><br>
> The information in this message and/or attachments, is intended solely for the<br>
> attention and use of the named addressee(s) and may be confidential or<br>
> proprietary in nature or covered by the provisions of privacy act (Legislative<br>
> Decree June, 30 2003, no.196 - Italy's New Data Protection Code). Any use not<br>
> in accord with its purpose, any disclosure, reproduction, copying,<br>
> distribution, or either dissemination, either whole or partial, is strictly<br>
> forbidden except previous formal approval of the named addressee(s). If you<br>
> are not the intended recipient, please contact immediately the sender by<br>
> telephone, fax or e-mail and delete the information in this message that has<br>
> been received in error. The sender does not give any warranty or accept<br>
> liability as the content, accuracy or completeness of sent messages and<br>
> accepts no responsibility  for changes made after they were sent or for other<br>
> risks which arise as a result of e-mail transmission, viruses, etc.<br>
> ______________________________<wbr>_________________<br>
> geonode-devel mailing list<br>
> <a href="mailto:geonode-devel@lists.osgeo.org">geonode-devel@lists.osgeo.org</a><br>
> <a href="https://lists.osgeo.org/mailman/listinfo/geonode-devel" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/geonode-devel</a><br>
<br>
<br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
Paolo Corti<br>
Geospatial software developer<br>
web: <a href="http://www.paolocorti.net" rel="noreferrer" target="_blank">http://www.paolocorti.net</a><br>
twitter: @capooti<br>
skype: capooti<br>
</font></span><div class="HOEnZb"><div class="h5">______________________________<wbr>_________________<br>
geonode-devel mailing list<br>
<a href="mailto:geonode-devel@lists.osgeo.org">geonode-devel@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/geonode-devel" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/geonode-devel</a><br>
</div></div></blockquote></div><br></div>