Lost dates

You found an error in the program ? Report it here
Post Reply
elman
Posts: 226
Joined: 2005-01-03 09:05:35

Lost dates

Post by elman »

I'm using AMC 3.5.1.0 (2006-12-24) on Vista x64 and I just realized that all "Date Added:" fields are lost. When I look in .xml file, there are no "date" attributes. When I add a movie and save catalogue, "date" is there, when I resave, "date" is lost.
antp
Site Admin
Posts: 9714
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

I guess that it is due to Vista then... it would be interesting if other people could confirm that they have the same problem. Also, is it related to Vista or to the x64 version?
Did you try also with the version 3.5.0.2 ? (to know if it is something that I changed recently)
elman
Posts: 226
Joined: 2005-01-03 09:05:35

Post by elman »

Just installed 3.5.0.2 and same thing happened there. When I add a movie and save the catalog, movie has date attribute as
Date="27. 2. 2007"
When I close amc and then start it again, date field is empty as if parsing XML failed and naturally when saving catalog date is not saved.

I don't have 32bit Vista, so I can only test in on x64 version with Slovak locales.
antp
Site Admin
Posts: 9714
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

Can you do a test with the ".amc" file format too? Though that I guess that the problem is not due to the XML file.
elman
Posts: 226
Joined: 2005-01-03 09:05:35

Post by elman »

Same thing with .amc file. When I saved catalog, I looked into .amc file and couldn't find any trace of 'date field'. I don't know if date is saved as plaintext or as some binary data, but if it should be in plaintext, it's not there.
antp
Site Admin
Posts: 9714
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

When you enter a date, go to another movie of the list and come back to the 1st one, is the date lost too? Or is it lost only when you close the catalog?
elman
Posts: 226
Joined: 2005-01-03 09:05:35

Post by elman »

It's only lost when I close catalog or to be more precise, when I open catalog.

If I add/edit movies and change date, save, then change other dates and save, I can still see all dates I changed since I opened catalog. When looking at .xml, all changed dates are there, no matter how many times I save catalog.

So to me it seems the problem is when opening catalog and date is not recognized correctly.
antp
Site Admin
Posts: 9714
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

I wonder how it can happen though, if it is displayed fine when you switch from one movie to another :??:
elman
Posts: 226
Joined: 2005-01-03 09:05:35

Post by elman »

Damn, I installed Vista again - this time 32bit version on completely different computer and same thing happened again. Only this time I lost dates for good. Well I have a month old backup, but what good is it, when I can't load dates properly... Has anybody else reported this problem? Could it be regional settings? I use English Vista with Slovak format, location and language for non-Unicode programs, so date is saved like this Date="14. 5. 2003"
antp
Site Admin
Posts: 9714
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

elman wrote: so date is saved like this Date="14. 5. 2003"
You mean in the XML? It should be 2003-05-14... :??:
elman
Posts: 226
Joined: 2005-01-03 09:05:35

Post by elman »

Yes, in XML I have date formatted in Slovak regional settings e.g.

Code: Select all

Date="14. 5. 2003"
The oldest backup I could dig up was

Code: Select all

<AntMovieCatalog Format="33" Version="3.4.3 (2004-03-02)" Date="1.9.2004 19:37:21">
and date is saved as

Code: Select all

Date="14.5.2003"
so without spaces. Back then I was using XP I guess.

Version

Code: Select all

<AntMovieCatalog Format="35" Version="3.5.0 (2005-05-29)" Date="30.10.2005 23:06:49">
still has

Code: Select all

Date="14.5.2003"
however version

Code: Select all

<AntMovieCatalog Format="35" Version="3.5.1 (2007-08-25)" Date="24. 9. 2007 23:43:49">
has date with spaces

Code: Select all

Date="14. 5. 2003"
antp
Site Admin
Posts: 9714
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

There is indeed a bug somewhere... I just see now that it is supposed to use slashes instead of dashes. I thought that I forced it to dashes, and as my PC uses dashes I did not notice the problem.
Strange that nobody else confirmed/reported that bug :??:
Well, I will fix it for the next release.
But as long as the file was created with same regional settings as the PC which loads the file, it should work...

Between 3.5.0 and 3.5.1 nothing changed in the program (or nothing should have changed...), it must be due to some change in Windows settings between XP and Vista.

But that is only related to XML. Previously you mentioned problems with AMC files, but in that format date is stored as integer number and so it is not subject to locale settings.
elman
Posts: 226
Joined: 2005-01-03 09:05:35

Post by elman »

A quick update. Same problem occurs also on Windows 7 x64. Again I have English Windows with Slovak regional settings.
elman
Posts: 226
Joined: 2005-01-03 09:05:35

Post by elman »

I just checked Ant Movie Catalog Unofficial 4.0.0 BETA (22/10/11) and it does seem to handle dates well. Would it be possible to analyze what has been changed and perhaps create patch for official version?
antp
Site Admin
Posts: 9714
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

Problems related to the unofficial version should be reported in the thread about it, as I am not sure that its author monitors all threads on the forum ;)
Post Reply