Announcement

#1 2015-02-11 23:58:58

msakik
Translation Team
São Paulo, Brazil
2013-09-06
78

Strange behaviour for date creation time

Hello,
I have noticed a strange behaviour today on date creation time.
At phpmyadmin it shows 1975-00-00 00:00:00.
At photo page it is saturday, november 30, 1974
At admin page it shows december 31, 1899

I know it is not well formed as month and day are set to 00 but I used this to set partially date for old pictures.

Any hint?

Thankyou.
Masaki

Piwigo version: 2.7.3
PHP: 5.5.9-1ubuntu4.5
MySQL: 5.5.40-0ubuntu0.14.04.1
Piwigo URL: http://

Offline

 

#2 2015-02-12 08:01:52

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Re: Strange behaviour for date creation time

That's it : invalid dates are not supported by PHP date manipulation classes. Period

You have to set your photos to january first

Offline

 

#3 2015-02-12 14:20:29

msakik
Translation Team
São Paulo, Brazil
2013-09-06
78

Re: Strange behaviour for date creation time

What happens for images that date_creation are set to NULL?

Offline

 

#4 2015-02-12 15:12:02

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Re: Strange behaviour for date creation time

We don't parse it

Offline

 

#5 2015-02-12 15:18:21

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Re: Strange behaviour for date creation time

Incorrect dates (or "partial" dates) were working fine with Piwigo prior to version 2.7 (or 2.6) but they no longer work correctly. I know some people will it as a regression but we can (should) also consider it as a bug fixed.

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact