You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1. Look at the year part of the scroller
What is the expected output? What do you see instead?
I'd like to configure the year to be displayed as 2011 instead of 11. Now the
2-digit format is hard-coded.
What version of the product are you using? On what operating system?
Mobiscroller 1.5.
Please provide any additional information below.
The format can be changed from the code by changing the line
w[s.yearText][i] = s.dateOrder.search(/yy/i) < 0 ? i.toString().substr(2, 2) :
i.toString();
to
w[s.yearText][i] = s.dateOrder.search(/yy/i) < 0 ? i.toString().substr(0, 4) :
i.toString();
This could be provided as a general option.
Original issue reported on code.google.com by thar...@gmail.com on 5 Sep 2011 at 7:17
The text was updated successfully, but these errors were encountered:
The original code is correct. In order to display 4 digit year format on the
scroller, set the dateOrder option to 'mdyy' instead of the default 'mdy'.
Original comment by diosla...@gmail.com on 5 Sep 2011 at 8:08
Original issue reported on code.google.com by
thar...@gmail.com
on 5 Sep 2011 at 7:17The text was updated successfully, but these errors were encountered: