ch22 : correcting type assignment and methodNameSpelling on ZonedDateTime examples
txpokey opened this issue · 2 comments
txpokey commented
There's a set of related examples demonstrating that you can extract a LocalDate, LocalTime or a LocalDateTime from ZonedDateTime. But the assignments look like a copy-paste error, as they all assign to some variable of type LocalDateTime, instead of the respective types. LocalDate or LocalTime are not subtypes of LocalDateTime.
After these, a couple lines later, there's a typo on use of:
int day = now.getDayofMonth();
instead of:
int day = now.getDayOfMonth();
txpokey commented
I closed the previous pull request, corrected my mistake on parens and then issued a new PR. apologies.
eh3rrera commented
Don't worry, it's merged now, thanks a lot! 👍