simple test for Issue104 - inconclusive
This commit is contained in:
18
testdata-java8/src/main/java/bugs/Issue104.java
Normal file
18
testdata-java8/src/main/java/bugs/Issue104.java
Normal file
@@ -0,0 +1,18 @@
|
||||
package bugs;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.ZoneId;
|
||||
import java.time.ZonedDateTime;
|
||||
|
||||
public class Issue104 {
|
||||
public static void main(String[] args) {
|
||||
System.out.println(run());
|
||||
}
|
||||
|
||||
public static String run() {
|
||||
LocalDateTime time = LocalDateTime.now();
|
||||
ZonedDateTime zdt = time.atZone(ZoneId.systemDefault());
|
||||
return zdt.toString();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user