[
https://issues.apache.org/jira/browse/CLOUDSTACK-9830?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16097207#comment-16097207
]
ASF subversion and git services commented on CLOUDSTACK-9830:
-------------------------------------------------------------
Commit 047bb1c74a5c77a45bf9c5a918ce8a8cfbe558fb in cloudstack's branch
refs/heads/master from [~nathanejohnson]
[ https://gitbox.apache.org/repos/asf?p=cloudstack.git;h=047bb1c ]
CLOUDSTACK-9830 Fix DST bug in QuotaAlertManagerTest
Replace the use of joda with Calendar, set explicitly to UTC when
doing date manipulation.
> QuotaAlertManagerTest fails testGetDifferenceDays on day before DST change
> --------------------------------------------------------------------------
>
> Key: CLOUDSTACK-9830
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9830
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Environment: master
> Reporter: Nathan Johnson
> Assignee: Nathan Johnson
> Priority: Minor
>
> this line (182 as of right now):
> assertTrue(QuotaAlertManagerImpl.getDifferenceDays(now, new
> DateTime(now).plusDays(1).toDate()) == 1L);
> fails on days where we're about to "spring forward" and lose an hour.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)