• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Fixed VB 4 importer incorrectly sets album 'Last Updated' to Jan 1, 1970 (epoch)

jeffwidman

Active member
#1
I did a test import of a VB 4.21 Gallery into XFMG 1.1.0 B2

Empty albums imported the correct 'Create Date', but 'Last Update' says "Jan 1, 1970"

I haven't been able to test whether this is also a problem on albums with images as I ran into a bug with the importer not correctly importing images into the albums. I've filed a support ticket, as I think that's a problem specific to my installation, but once that's resolved I will check that as well.

Suggested fix:
At the time of import, empty albums should have 'Last Update' set to their 'Create Date' value. Imported albums with photos should have 'Last Update' set to the upload date of the most recently uploaded photo to the album.
 

Chris D

XenForo developer
Staff member
#2
This is fixed now, thanks.

Fix is line 340 of vBulletin42x.php. Find:
PHP:
'last_update_date' => $album['last_update_date'],
Change to:
PHP:
'last_update_date' => $album['last_update_date'] ? $album['last_update_date'] : $album['createdate'],