[jira] [Commented] (FLEX-33347) DateSpinner dateAndTime jumping

2013-01-11 Thread JIRA

[ 
https://issues.apache.org/jira/browse/FLEX-33347?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13551240#comment-13551240
 ] 

Fréderic Cox commented on FLEX-33347:
-

Thanks for this fix! And so quickly! I notice you set the month twice now. Is 
that for a specific reason?

newDate.month = spinnerDate.month;
 newDate.date = spinnerDate.date;
newDate.month = spinnerDate.month;

> DateSpinner dateAndTime jumping
> ---
>
> Key: FLEX-33347
> URL: https://issues.apache.org/jira/browse/FLEX-33347
> Project: Apache Flex
>  Issue Type: Bug
>  Components: Mobile: DateSpinner
>Affects Versions: Adobe Flex SDK 4.6 (Release)
> Environment: Both mobile (iOS) and desktop (Mac) I've tested it
>Reporter: Fréderic Cox
>Assignee: Carol Frampton
> Fix For: Apache Flex 4.10.0
>
>
> As reported on 
> http://stackoverflow.com/questions/9126194/flex-mobile-4-6-datespinner-dateandtime-jumping-from-jan-31st-to-march-1st:
> set the date in DateSpinner to January 30 or 31 (using mouse or touch)
> click (mouse or touch) on February 1 (visible one or two rows below on the 
> DateSpinner)
> The Datespinner does spin forward but does not stop at February 1: it jumps 
> to March 1. The same behavior can be observed with March 31 - mouse click on 
> April 1 causes a jump to May 1; with May 31 - mouse click on June 1 jumping 
> to July 1, and so on.
> I suspect this behavior is related to the fact that the next month has less 
> days than the prior month (30 instead of 31, or 29 in the case of February 
> 2012), but it is not the behavior that I would like to see when following 
> these two steps. Does anyone know a workaround or fix?
> When the DateSpinner is set with displayMode as 'date' all is well, but that 
> doesn't work in my use case.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (FLEX-33347) DateSpinner dateAndTime jumping

2013-01-11 Thread Carol Frampton (JIRA)

[ 
https://issues.apache.org/jira/browse/FLEX-33347?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13551253#comment-13551253
 ] 

Carol Frampton commented on FLEX-33347:
---

It isn't set twice.  The diff shows the removed line and the new lines.

 case dateList:
 // for DATE_AND_TIME mode data is a Date.time value
+// Must set date before the month to ensure the date is 
valid for the
+// month.  If newDate is Jan 31 and you set the month to 
Feb it will change
+// the month to March since Feb 31 is not a valid date.
 if (displayMode == DateSelectorDisplayMode.DATE_AND_TIME)
 {
 var spinnerDate:Date = new Date(newValue.data);
 newDate.fullYear = spinnerDate.fullYear;
-newDate.month = spinnerDate.month;
 newDate.date = spinnerDate.date;
+newDate.month = spinnerDate.month;
 }


> DateSpinner dateAndTime jumping
> ---
>
> Key: FLEX-33347
> URL: https://issues.apache.org/jira/browse/FLEX-33347
> Project: Apache Flex
>  Issue Type: Bug
>  Components: Mobile: DateSpinner
>Affects Versions: Adobe Flex SDK 4.6 (Release)
> Environment: Both mobile (iOS) and desktop (Mac) I've tested it
>Reporter: Fréderic Cox
>Assignee: Carol Frampton
> Fix For: Apache Flex 4.10.0
>
>
> As reported on 
> http://stackoverflow.com/questions/9126194/flex-mobile-4-6-datespinner-dateandtime-jumping-from-jan-31st-to-march-1st:
> set the date in DateSpinner to January 30 or 31 (using mouse or touch)
> click (mouse or touch) on February 1 (visible one or two rows below on the 
> DateSpinner)
> The Datespinner does spin forward but does not stop at February 1: it jumps 
> to March 1. The same behavior can be observed with March 31 - mouse click on 
> April 1 causes a jump to May 1; with May 31 - mouse click on June 1 jumping 
> to July 1, and so on.
> I suspect this behavior is related to the fact that the next month has less 
> days than the prior month (30 instead of 31, or 29 in the case of February 
> 2012), but it is not the behavior that I would like to see when following 
> these two steps. Does anyone know a workaround or fix?
> When the DateSpinner is set with displayMode as 'date' all is well, but that 
> doesn't work in my use case.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (FLEX-33347) DateSpinner dateAndTime jumping

2013-01-11 Thread JIRA

[ 
https://issues.apache.org/jira/browse/FLEX-33347?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13551308#comment-13551308
 ] 

Fréderic Cox commented on FLEX-33347:
-

My bad! New to this .. thanks

> DateSpinner dateAndTime jumping
> ---
>
> Key: FLEX-33347
> URL: https://issues.apache.org/jira/browse/FLEX-33347
> Project: Apache Flex
>  Issue Type: Bug
>  Components: Mobile: DateSpinner
>Affects Versions: Adobe Flex SDK 4.6 (Release)
> Environment: Both mobile (iOS) and desktop (Mac) I've tested it
>Reporter: Fréderic Cox
>Assignee: Carol Frampton
> Fix For: Apache Flex 4.10.0
>
>
> As reported on 
> http://stackoverflow.com/questions/9126194/flex-mobile-4-6-datespinner-dateandtime-jumping-from-jan-31st-to-march-1st:
> set the date in DateSpinner to January 30 or 31 (using mouse or touch)
> click (mouse or touch) on February 1 (visible one or two rows below on the 
> DateSpinner)
> The Datespinner does spin forward but does not stop at February 1: it jumps 
> to March 1. The same behavior can be observed with March 31 - mouse click on 
> April 1 causes a jump to May 1; with May 31 - mouse click on June 1 jumping 
> to July 1, and so on.
> I suspect this behavior is related to the fact that the next month has less 
> days than the prior month (30 instead of 31, or 29 in the case of February 
> 2012), but it is not the behavior that I would like to see when following 
> these two steps. Does anyone know a workaround or fix?
> When the DateSpinner is set with displayMode as 'date' all is well, but that 
> doesn't work in my use case.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (FLEX-33347) DateSpinner dateAndTime jumping

2013-01-11 Thread Justin Mclean (JIRA)

[ 
https://issues.apache.org/jira/browse/FLEX-33347?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13551840#comment-13551840
 ] 

Justin Mclean commented on FLEX-33347:
--

There might a similar issue involving leap years and Feb 29th when changing the 
year to an non leap year

> DateSpinner dateAndTime jumping
> ---
>
> Key: FLEX-33347
> URL: https://issues.apache.org/jira/browse/FLEX-33347
> Project: Apache Flex
>  Issue Type: Bug
>  Components: Mobile: DateSpinner
>Affects Versions: Adobe Flex SDK 4.6 (Release)
> Environment: Both mobile (iOS) and desktop (Mac) I've tested it
>Reporter: Fréderic Cox
>Assignee: Carol Frampton
> Fix For: Apache Flex 4.10.0
>
>
> As reported on 
> http://stackoverflow.com/questions/9126194/flex-mobile-4-6-datespinner-dateandtime-jumping-from-jan-31st-to-march-1st:
> set the date in DateSpinner to January 30 or 31 (using mouse or touch)
> click (mouse or touch) on February 1 (visible one or two rows below on the 
> DateSpinner)
> The Datespinner does spin forward but does not stop at February 1: it jumps 
> to March 1. The same behavior can be observed with March 31 - mouse click on 
> April 1 causes a jump to May 1; with May 31 - mouse click on June 1 jumping 
> to July 1, and so on.
> I suspect this behavior is related to the fact that the next month has less 
> days than the prior month (30 instead of 31, or 29 in the case of February 
> 2012), but it is not the behavior that I would like to see when following 
> these two steps. Does anyone know a workaround or fix?
> When the DateSpinner is set with displayMode as 'date' all is well, but that 
> doesn't work in my use case.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (FLEX-33347) DateSpinner dateAndTime jumping

2013-01-13 Thread JIRA

[ 
https://issues.apache.org/jira/browse/FLEX-33347?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13552229#comment-13552229
 ] 

Fréderic Cox commented on FLEX-33347:
-

Also found another bug while testing your previous fix. Now when you set the 
date on March 31st it won't jump to May 1st when you select April 1st. But when 
you have the date set on 1st of April and then select the 31st of March (so you 
go back) then it will jump to the 1st of March

> DateSpinner dateAndTime jumping
> ---
>
> Key: FLEX-33347
> URL: https://issues.apache.org/jira/browse/FLEX-33347
> Project: Apache Flex
>  Issue Type: Bug
>  Components: Mobile: DateSpinner
>Affects Versions: Adobe Flex SDK 4.6 (Release)
> Environment: Both mobile (iOS) and desktop (Mac) I've tested it
>Reporter: Fréderic Cox
>Assignee: Carol Frampton
> Fix For: Apache Flex 4.10.0
>
>
> As reported on 
> http://stackoverflow.com/questions/9126194/flex-mobile-4-6-datespinner-dateandtime-jumping-from-jan-31st-to-march-1st:
> set the date in DateSpinner to January 30 or 31 (using mouse or touch)
> click (mouse or touch) on February 1 (visible one or two rows below on the 
> DateSpinner)
> The Datespinner does spin forward but does not stop at February 1: it jumps 
> to March 1. The same behavior can be observed with March 31 - mouse click on 
> April 1 causes a jump to May 1; with May 31 - mouse click on June 1 jumping 
> to July 1, and so on.
> I suspect this behavior is related to the fact that the next month has less 
> days than the prior month (30 instead of 31, or 29 in the case of February 
> 2012), but it is not the behavior that I would like to see when following 
> these two steps. Does anyone know a workaround or fix?
> When the DateSpinner is set with displayMode as 'date' all is well, but that 
> doesn't work in my use case.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (FLEX-33347) DateSpinner dateAndTime jumping

2013-01-13 Thread JIRA

[ 
https://issues.apache.org/jira/browse/FLEX-33347?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13552230#comment-13552230
 ] 

Fréderic Cox commented on FLEX-33347:
-

When you set the date on Feb 1 and then on Jan 31 it jumps to Jan 3

> DateSpinner dateAndTime jumping
> ---
>
> Key: FLEX-33347
> URL: https://issues.apache.org/jira/browse/FLEX-33347
> Project: Apache Flex
>  Issue Type: Bug
>  Components: Mobile: DateSpinner
>Affects Versions: Adobe Flex SDK 4.6 (Release)
> Environment: Both mobile (iOS) and desktop (Mac) I've tested it
>Reporter: Fréderic Cox
>Assignee: Carol Frampton
> Fix For: Apache Flex 4.10.0
>
>
> As reported on 
> http://stackoverflow.com/questions/9126194/flex-mobile-4-6-datespinner-dateandtime-jumping-from-jan-31st-to-march-1st:
> set the date in DateSpinner to January 30 or 31 (using mouse or touch)
> click (mouse or touch) on February 1 (visible one or two rows below on the 
> DateSpinner)
> The Datespinner does spin forward but does not stop at February 1: it jumps 
> to March 1. The same behavior can be observed with March 31 - mouse click on 
> April 1 causes a jump to May 1; with May 31 - mouse click on June 1 jumping 
> to July 1, and so on.
> I suspect this behavior is related to the fact that the next month has less 
> days than the prior month (30 instead of 31, or 29 in the case of February 
> 2012), but it is not the behavior that I would like to see when following 
> these two steps. Does anyone know a workaround or fix?
> When the DateSpinner is set with displayMode as 'date' all is well, but that 
> doesn't work in my use case.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (FLEX-33347) DateSpinner dateAndTime jumping

2013-01-13 Thread JIRA

[ 
https://issues.apache.org/jira/browse/FLEX-33347?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13552232#comment-13552232
 ] 

Fréderic Cox commented on FLEX-33347:
-

Why is the fix not this?

case dateList:
// for DATE_AND_TIME mode data is a Date.time value
if (displayMode == DateSelectorDisplayMode.DATE_AND_TIME)
{
   newDate = new Date(newValue.data);
/*newDate.fullYear = spinnerDate.fullYear;
newDate.date = spinnerDate.date;
newDate.month = spinnerDate.month;*/
}

> DateSpinner dateAndTime jumping
> ---
>
> Key: FLEX-33347
> URL: https://issues.apache.org/jira/browse/FLEX-33347
> Project: Apache Flex
>  Issue Type: Bug
>  Components: Mobile: DateSpinner
>Affects Versions: Adobe Flex SDK 4.6 (Release)
> Environment: Both mobile (iOS) and desktop (Mac) I've tested it
>Reporter: Fréderic Cox
>Assignee: Carol Frampton
> Fix For: Apache Flex 4.10.0
>
>
> As reported on 
> http://stackoverflow.com/questions/9126194/flex-mobile-4-6-datespinner-dateandtime-jumping-from-jan-31st-to-march-1st:
> set the date in DateSpinner to January 30 or 31 (using mouse or touch)
> click (mouse or touch) on February 1 (visible one or two rows below on the 
> DateSpinner)
> The Datespinner does spin forward but does not stop at February 1: it jumps 
> to March 1. The same behavior can be observed with March 31 - mouse click on 
> April 1 causes a jump to May 1; with May 31 - mouse click on June 1 jumping 
> to July 1, and so on.
> I suspect this behavior is related to the fact that the next month has less 
> days than the prior month (30 instead of 31, or 29 in the case of February 
> 2012), but it is not the behavior that I would like to see when following 
> these two steps. Does anyone know a workaround or fix?
> When the DateSpinner is set with displayMode as 'date' all is well, but that 
> doesn't work in my use case.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (FLEX-33347) DateSpinner dateAndTime jumping

2013-01-14 Thread Carol Frampton (JIRA)

[ 
https://issues.apache.org/jira/browse/FLEX-33347?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13552850#comment-13552850
 ] 

Carol Frampton commented on FLEX-33347:
---

@ Fréderic - this section of code is just suppose to set the date, not the time.

@Justin - Since the year is set first and then the month and date together, I 
believe to/from leap years will work correctly.

> DateSpinner dateAndTime jumping
> ---
>
> Key: FLEX-33347
> URL: https://issues.apache.org/jira/browse/FLEX-33347
> Project: Apache Flex
>  Issue Type: Bug
>  Components: Mobile: DateSpinner
>Affects Versions: Adobe Flex SDK 4.6 (Release)
> Environment: Both mobile (iOS) and desktop (Mac) I've tested it
>Reporter: Fréderic Cox
>Assignee: Carol Frampton
> Fix For: Apache Flex 4.10.0
>
>
> As reported on 
> http://stackoverflow.com/questions/9126194/flex-mobile-4-6-datespinner-dateandtime-jumping-from-jan-31st-to-march-1st:
> set the date in DateSpinner to January 30 or 31 (using mouse or touch)
> click (mouse or touch) on February 1 (visible one or two rows below on the 
> DateSpinner)
> The Datespinner does spin forward but does not stop at February 1: it jumps 
> to March 1. The same behavior can be observed with March 31 - mouse click on 
> April 1 causes a jump to May 1; with May 31 - mouse click on June 1 jumping 
> to July 1, and so on.
> I suspect this behavior is related to the fact that the next month has less 
> days than the prior month (30 instead of 31, or 29 in the case of February 
> 2012), but it is not the behavior that I would like to see when following 
> these two steps. Does anyone know a workaround or fix?
> When the DateSpinner is set with displayMode as 'date' all is well, but that 
> doesn't work in my use case.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


Re: [jira] [Commented] (FLEX-33347) DateSpinner dateAndTime jumping

2013-01-12 Thread Sachin Chandorkar
Please unsubscribe me from the mailing list.

Thanks 

Sachin Chandorkar

On 12 Jan 2013, at 07:08 AM, "Justin Mclean (JIRA)"  wrote:

> 
>[ 
> https://issues.apache.org/jira/browse/FLEX-33347?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13551840#comment-13551840
>  ] 
> 
> Justin Mclean commented on FLEX-33347:
> --
> 
> There might a similar issue involving leap years and Feb 29th when changing 
> the year to an non leap year
> 
>> DateSpinner dateAndTime jumping
>> ---
>> 
>>Key: FLEX-33347
>>URL: https://issues.apache.org/jira/browse/FLEX-33347
>>Project: Apache Flex
>> Issue Type: Bug
>> Components: Mobile: DateSpinner
>>   Affects Versions: Adobe Flex SDK 4.6 (Release)
>>Environment: Both mobile (iOS) and desktop (Mac) I've tested it
>>   Reporter: Fréderic Cox
>>   Assignee: Carol Frampton
>>Fix For: Apache Flex 4.10.0
>> 
>> 
>> As reported on 
>> http://stackoverflow.com/questions/9126194/flex-mobile-4-6-datespinner-dateandtime-jumping-from-jan-31st-to-march-1st:
>> set the date in DateSpinner to January 30 or 31 (using mouse or touch)
>> click (mouse or touch) on February 1 (visible one or two rows below on the 
>> DateSpinner)
>> The Datespinner does spin forward but does not stop at February 1: it jumps 
>> to March 1. The same behavior can be observed with March 31 - mouse click on 
>> April 1 causes a jump to May 1; with May 31 - mouse click on June 1 jumping 
>> to July 1, and so on.
>> I suspect this behavior is related to the fact that the next month has less 
>> days than the prior month (30 instead of 31, or 29 in the case of February 
>> 2012), but it is not the behavior that I would like to see when following 
>> these two steps. Does anyone know a workaround or fix?
>> When the DateSpinner is set with displayMode as 'date' all is well, but that 
>> doesn't work in my use case.
> 
> --
> This message is automatically generated by JIRA.
> If you think it was sent incorrectly, please contact your JIRA administrators
> For more information on JIRA, see: http://www.atlassian.com/software/jira