Using GregorianCalender instead of LocalDateTime to be compatible with
Java 7.