Author |
Topic |
|
Danoo
Starting Member
Australia
4 Posts |
Posted - 16 Jan 2017 : 08:56:59
|
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
|
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 |
|
|
JDommi
Administrator
Germany
4657 Posts |
Posted - 16 Jan 2017 : 11:33:39
|
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 |
|
|
Danoo
Starting Member
Australia
4 Posts |
Posted - 16 Jan 2017 : 12:11:55
|
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 |
|
|
JDommi
Administrator
Germany
4657 Posts |
Posted - 16 Jan 2017 : 12:52:00
|
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 |
|
|
houkman
Starting Member
Poland
29 Posts |
|
|
Topic |
|