BinaryWorks.it Official Forum
BinaryWorks.it Official Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 eXtreme Movie Manager 8, 9, 10 Forum
 Bug Reports
 Zodiac information update from DOB of actor
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Danoo
Starting Member

Australia
4 Posts

Posted - 16 Jan 2017 :  08:56:59  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hi,
This maybe a bug,

I have noticed if the DOB of actor is a single figure day of the month
(eg. the first 9 days of the month from the first to the ninth)
the automatic update of the Zodiac sign for this actor comes up as undefined.

As soon as the date of month moves into double figures (eg.the 10th through to the 31st), the zodiac updates correctly to conform with the DOB of the actor.

Not a big issue, but no programmer likes to see the word undefined

Cheers Dan

JDommi
Administrator

Germany
4657 Posts

Posted - 16 Jan 2017 :  10:41:54  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks for the info! I never have realized that problem.
I will have a look at this functions today.
But maybe you or another user is faster than me: CardsRepository/js/zodiac.js is javascript function.

In order to achieve what is possible, you have to try the impossible over and over again.
Hermann Hesse
Go to Top of Page

JDommi
Administrator

Germany
4657 Posts

Posted - 16 Jan 2017 :  11:33:39  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Strange, I always get 2 digits for day and month. XMM itself expands every date leading zeros if neccessary.
Can it be that the internal date format of your OS is set to shorten it?
Make a screenshot of such an error, please. Otherwise I can't reproduce it.

In order to achieve what is possible, you have to try the impossible over and over again.
Hermann Hesse
Go to Top of Page

Danoo
Starting Member

Australia
4 Posts

Posted - 16 Jan 2017 :  12:11:55  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by JDommi

Strange, I always get 2 digits for day and month. XMM itself expands every date leading zeros if neccessary.
Can it be that the internal date format of your OS is set to shorten it?
Make a screenshot of such an error, please. Otherwise I can't reproduce it.



Yea that is the problem I need to have a leading zero on my single digit dates to satisfy the the 2 substr operators at the start of the script
b = bdate.substr(0,2);
c = bdate.substr(3,2);

it is expecting 2 digits

I can probably re-write the script to combat whether there is a leading zero or not
If i do I'll let you know and post the ammended script

Cheers, Dan

Edited by - Danoo on 16 Jan 2017 12:16:23
Go to Top of Page

JDommi
Administrator

Germany
4657 Posts

Posted - 16 Jan 2017 :  12:52:00  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
That would be great
Somewhere in one of the other scripts there is already existing a function that adds a leading zero to the season/episode.

In order to achieve what is possible, you have to try the impossible over and over again.
Hermann Hesse
Go to Top of Page

houkman
Starting Member

Poland
29 Posts

Posted - 10 Mar 2018 :  20:00:03  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
zodiac.js from version 8.2.6.0 works:
https://www.dropbox.com/s/j1efeb4qurzxzxc/zodiac.js?dl=1
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
BinaryWorks.it Official Forum © Binaryworks.it Go To Top Of Page
Generated in 0.09 sec. Powered By: Snitz Forums 2000 Version 3.4.07