You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2022/04/05 13:59:00 UTC

[jira] [Commented] (ISIS-2992) VirtualClock.nowAt(LocalDate.parse("2014-05-18")) fails.

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

ASF subversion and git services commented on ISIS-2992:
-------------------------------------------------------

Commit 102aa31fbc065867f7b57ecf2fd5283c3de29849 in isis's branch refs/heads/master from Andi Huber
[ https://gitbox.apache.org/repos/asf?p=isis.git;h=102aa31fbc ]

ISIS-2992: fixes VirtualClock construction issues

> VirtualClock.nowAt(LocalDate.parse("2014-05-18")) fails.
> --------------------------------------------------------
>
>                 Key: ISIS-2992
>                 URL: https://issues.apache.org/jira/browse/ISIS-2992
>             Project: Isis
>          Issue Type: Bug
>          Components: Isis Applib (programming model)
>    Affects Versions: 2.0.0-M7
>            Reporter: Daniel Keir Haywood
>            Assignee: Andi Huber
>            Priority: Minor
>             Fix For: 2.0.0-RC1
>
>
> I had to use the Instant overload...
>  
>  val testDateTime = LocalDate.parse("2014-05-18");
> val testInstant = Instant.from(testDateTime.atStartOfDay().toInstant(ZoneOffset.UTC));
> val virtualClock = VirtualClock.nowAt(testInstant);



--
This message was sent by Atlassian Jira
(v8.20.1#820001)