You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2017/07/22 09:37:00 UTC
[jira] [Commented] (CLOUDSTACK-9830) QuotaAlertManagerTest fails
testGetDifferenceDays on day before DST change
[ https://issues.apache.org/jira/browse/CLOUDSTACK-9830?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16097199#comment-16097199 ]
ASF subversion and git services commented on CLOUDSTACK-9830:
-------------------------------------------------------------
Commit 047bb1c74a5c77a45bf9c5a918ce8a8cfbe558fb in cloudstack's branch refs/heads/4.9 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)