[
https://issues.apache.org/jira/browse/FLEX-34731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14298817#comment-14298817
]
Mike Robinson commented on FLEX-34731:
--------------------------------------
It behaves the same regardless of the day being set. I found a work-around
by setting the UTC month instead of month. E.g. date.setUTCMonth(1); ends
up setting both month and utcMonth.
Best wishes,
Mike
On Fri, Jan 30, 2015 at 10:25 AM, Mark Kessler (JIRA) <[email protected]>
> Setting month to 1 in Date field ends up as 2
> ---------------------------------------------
>
> Key: FLEX-34731
> URL: https://issues.apache.org/jira/browse/FLEX-34731
> Project: Apache Flex
> Issue Type: Bug
> Affects Versions: Apache Flex 4.13.0
> Reporter: Mike Robinson
> Labels: easyfix
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> Cannot set the Date month value to February.
> var date:Date = new Date();
> date.setMonth(1); // month ends up as 2
> date.setMonth(0); // correct
> date.setMonth(2); // correct
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)