You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Ryan Holmes (JIRA)" <ta...@jakarta.apache.org> on 2006/03/19 00:10:58 UTC

[jira] Created: (TAPESTRY-888) DatePicker.js does not support 12-hour time format.

DatePicker.js does not support 12-hour time format.
---------------------------------------------------

         Key: TAPESTRY-888
         URL: http://issues.apache.org/jira/browse/TAPESTRY-888
     Project: Tapestry
        Type: Improvement
  Components: Framework  
    Versions: 4.0    
 Environment: n/a
    Reporter: Ryan Holmes
    Priority: Minor


DatePicker.js ignores 'h' and 'a' characters in a date translator pattern. It would be nice to support these since they are fairly common.

I would have included a real patch, but DatePicker.js is has an svn:mime-type property of application/octet-stream in the repository so I couldn't find an easy way to generate one.

The following needs to be added starting at line 805:
    bits['h'] = getHoursAmPm(date);
    bits['hh'] = pad(getHoursAmPm(date),2); 

    bits['a'] = getAmPm(date);

The keys array needs to include these as well:
    var keys = new Array('dddd','ddd','dd','d','MMMM','MMM','MM','M','yyyy','yy', 'ss', 's', 'mm',
        'm', 'HH', 'H', 'hh', 'h', 'a');

And these functions need to be added:
function getHoursAmPm(date) {
	var hours = date.getHours();
	if (hours == 0) hours = 12;
	if (hours > 12)	hours -= 12;
	return hours;
}

function getAmPm(date) {
	var ampm = "AM";
	if (date.getHours() > 11) ampm = "PM";
	return ampm;
}


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org


[jira] Updated: (TAPESTRY-888) DatePicker.js does not support 12-hour time format.

Posted by "Jesse Kuhnert (JIRA)" <ta...@jakarta.apache.org>.
     [ http://issues.apache.org/jira/browse/TAPESTRY-888?page=all ]

Jesse Kuhnert updated TAPESTRY-888:
-----------------------------------

    Fix Version/s: 4.1.2

> DatePicker.js does not support 12-hour time format.
> ---------------------------------------------------
>
>                 Key: TAPESTRY-888
>                 URL: http://issues.apache.org/jira/browse/TAPESTRY-888
>             Project: Tapestry
>          Issue Type: Improvement
>          Components: Framework
>    Affects Versions: 4.0
>         Environment: n/a
>            Reporter: Ryan Holmes
>            Priority: Minor
>             Fix For: 4.1.2
>
>
> DatePicker.js ignores 'h' and 'a' characters in a date translator pattern. It would be nice to support these since they are fairly common.
> I would have included a real patch, but DatePicker.js is has an svn:mime-type property of application/octet-stream in the repository so I couldn't find an easy way to generate one.
> The following needs to be added starting at line 805:
>     bits['h'] = getHoursAmPm(date);
>     bits['hh'] = pad(getHoursAmPm(date),2); 
>     bits['a'] = getAmPm(date);
> The keys array needs to include these as well:
>     var keys = new Array('dddd','ddd','dd','d','MMMM','MMM','MM','M','yyyy','yy', 'ss', 's', 'mm',
>         'm', 'HH', 'H', 'hh', 'h', 'a');
> And these functions need to be added:
> function getHoursAmPm(date) {
> 	var hours = date.getHours();
> 	if (hours == 0) hours = 12;
> 	if (hours > 12)	hours -= 12;
> 	return hours;
> }
> function getAmPm(date) {
> 	var ampm = "AM";
> 	if (date.getHours() > 11) ampm = "PM";
> 	return ampm;
> }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Updated: (TAPESTRY-888) DatePicker.js does not support 12-hour time format.

Posted by "Jesse Kuhnert (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-888?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jesse Kuhnert updated TAPESTRY-888:
-----------------------------------

    Fix Version/s:     (was: 4.1.5)
                   4.1.6

> DatePicker.js does not support 12-hour time format.
> ---------------------------------------------------
>
>                 Key: TAPESTRY-888
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-888
>             Project: Tapestry
>          Issue Type: Improvement
>          Components: Framework
>    Affects Versions: 4.0
>         Environment: n/a
>            Reporter: Ryan Holmes
>            Priority: Minor
>             Fix For: 4.1.6
>
>
> DatePicker.js ignores 'h' and 'a' characters in a date translator pattern. It would be nice to support these since they are fairly common.
> I would have included a real patch, but DatePicker.js is has an svn:mime-type property of application/octet-stream in the repository so I couldn't find an easy way to generate one.
> The following needs to be added starting at line 805:
>     bits['h'] = getHoursAmPm(date);
>     bits['hh'] = pad(getHoursAmPm(date),2); 
>     bits['a'] = getAmPm(date);
> The keys array needs to include these as well:
>     var keys = new Array('dddd','ddd','dd','d','MMMM','MMM','MM','M','yyyy','yy', 'ss', 's', 'mm',
>         'm', 'HH', 'H', 'hh', 'h', 'a');
> And these functions need to be added:
> function getHoursAmPm(date) {
> 	var hours = date.getHours();
> 	if (hours == 0) hours = 12;
> 	if (hours > 12)	hours -= 12;
> 	return hours;
> }
> function getAmPm(date) {
> 	var ampm = "AM";
> 	if (date.getHours() > 11) ampm = "PM";
> 	return ampm;
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Updated: (TAPESTRY-888) DatePicker.js does not support 12-hour time format.

Posted by "Jesse Kuhnert (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-888?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jesse Kuhnert updated TAPESTRY-888:
-----------------------------------

    Fix Version/s:     (was: 4.1.3)
                   4.1.4

> DatePicker.js does not support 12-hour time format.
> ---------------------------------------------------
>
>                 Key: TAPESTRY-888
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-888
>             Project: Tapestry
>          Issue Type: Improvement
>          Components: Framework
>    Affects Versions: 4.0
>         Environment: n/a
>            Reporter: Ryan Holmes
>            Priority: Minor
>             Fix For: 4.1.4
>
>
> DatePicker.js ignores 'h' and 'a' characters in a date translator pattern. It would be nice to support these since they are fairly common.
> I would have included a real patch, but DatePicker.js is has an svn:mime-type property of application/octet-stream in the repository so I couldn't find an easy way to generate one.
> The following needs to be added starting at line 805:
>     bits['h'] = getHoursAmPm(date);
>     bits['hh'] = pad(getHoursAmPm(date),2); 
>     bits['a'] = getAmPm(date);
> The keys array needs to include these as well:
>     var keys = new Array('dddd','ddd','dd','d','MMMM','MMM','MM','M','yyyy','yy', 'ss', 's', 'mm',
>         'm', 'HH', 'H', 'hh', 'h', 'a');
> And these functions need to be added:
> function getHoursAmPm(date) {
> 	var hours = date.getHours();
> 	if (hours == 0) hours = 12;
> 	if (hours > 12)	hours -= 12;
> 	return hours;
> }
> function getAmPm(date) {
> 	var ampm = "AM";
> 	if (date.getHours() > 11) ampm = "PM";
> 	return ampm;
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Updated: (TAPESTRY-888) DatePicker.js does not support 12-hour time format.

Posted by "Jesse Kuhnert (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-888?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jesse Kuhnert updated TAPESTRY-888:
-----------------------------------

    Fix Version/s:     (was: 4.1.2)
                   4.1.3

> DatePicker.js does not support 12-hour time format.
> ---------------------------------------------------
>
>                 Key: TAPESTRY-888
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-888
>             Project: Tapestry
>          Issue Type: Improvement
>          Components: Framework
>    Affects Versions: 4.0
>         Environment: n/a
>            Reporter: Ryan Holmes
>            Priority: Minor
>             Fix For: 4.1.3
>
>
> DatePicker.js ignores 'h' and 'a' characters in a date translator pattern. It would be nice to support these since they are fairly common.
> I would have included a real patch, but DatePicker.js is has an svn:mime-type property of application/octet-stream in the repository so I couldn't find an easy way to generate one.
> The following needs to be added starting at line 805:
>     bits['h'] = getHoursAmPm(date);
>     bits['hh'] = pad(getHoursAmPm(date),2); 
>     bits['a'] = getAmPm(date);
> The keys array needs to include these as well:
>     var keys = new Array('dddd','ddd','dd','d','MMMM','MMM','MM','M','yyyy','yy', 'ss', 's', 'mm',
>         'm', 'HH', 'H', 'hh', 'h', 'a');
> And these functions need to be added:
> function getHoursAmPm(date) {
> 	var hours = date.getHours();
> 	if (hours == 0) hours = 12;
> 	if (hours > 12)	hours -= 12;
> 	return hours;
> }
> function getAmPm(date) {
> 	var ampm = "AM";
> 	if (date.getHours() > 11) ampm = "PM";
> 	return ampm;
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Updated: (TAPESTRY-888) DatePicker.js does not support 12-hour time format.

Posted by "Marcus Schulte (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-888?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marcus Schulte updated TAPESTRY-888:
------------------------------------

    Fix Version/s:     (was: 4.1.6)
                   4.1.7

> DatePicker.js does not support 12-hour time format.
> ---------------------------------------------------
>
>                 Key: TAPESTRY-888
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-888
>             Project: Tapestry
>          Issue Type: Improvement
>          Components: Framework
>    Affects Versions: 4.0
>         Environment: n/a
>            Reporter: Ryan Holmes
>            Priority: Minor
>             Fix For: 4.1.7
>
>
> DatePicker.js ignores 'h' and 'a' characters in a date translator pattern. It would be nice to support these since they are fairly common.
> I would have included a real patch, but DatePicker.js is has an svn:mime-type property of application/octet-stream in the repository so I couldn't find an easy way to generate one.
> The following needs to be added starting at line 805:
>     bits['h'] = getHoursAmPm(date);
>     bits['hh'] = pad(getHoursAmPm(date),2); 
>     bits['a'] = getAmPm(date);
> The keys array needs to include these as well:
>     var keys = new Array('dddd','ddd','dd','d','MMMM','MMM','MM','M','yyyy','yy', 'ss', 's', 'mm',
>         'm', 'HH', 'H', 'hh', 'h', 'a');
> And these functions need to be added:
> function getHoursAmPm(date) {
> 	var hours = date.getHours();
> 	if (hours == 0) hours = 12;
> 	if (hours > 12)	hours -= 12;
> 	return hours;
> }
> function getAmPm(date) {
> 	var ampm = "AM";
> 	if (date.getHours() > 11) ampm = "PM";
> 	return ampm;
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org