Posts

Showing posts from January 4, 2019

Java 8 Date API - Getting week of month throws UnsupportedTemporalTypeException: Unsupported field: DayOfWeek

Image
6 1 I am trying to get the week of the current month like so: YearMonth .from(Instant.now().atZone(ZoneId.of("UTC"))) .get(WeekFields.ISO.weekOfMonth()) But this throws java.time.temporal.UnsupportedTemporalTypeException: Unsupported field: DayOfWeek I can't seem to work out why I'm getting this exception, because I'm not doing anything with DayOfWeek . Any ideas? java kotlin java-date share | improve this question asked 5 hours ago series0ne 16.2k 25 98 183

How do I change “Open with Powershell” to “Open with Command Prompt” when shift-rightclicking in...

Image
28 21 Shift-rightclicking an empty spot in Explorer displays "Open with PowerShell" instead of "Open with Command Prompt" since the Creators Update (2017-04). How can I get the old behaviour back where it shows "Open with Command Prompt" ? I tried changing the setting "Show PowerShell instead of Command Prompt when rightclicking the Start Menu or pressing Windows + X" to off, but that didn't change the shift+rightclick menu. windows-10 windows-10-v1703 share | improve this question edited Jul 30 '18 at 18:25 Peter Mortensen 8,336 16 61 84