]> source.dussan.org Git - vaadin-framework.git/commit
Add support for "ww" in date format (#12037)
authorTatu Lund <tatu@vaadin.com>
Fri, 3 Jul 2020 10:17:34 +0000 (13:17 +0300)
committerGitHub <noreply@github.com>
Fri, 3 Jul 2020 10:17:34 +0000 (13:17 +0300)
commit3640be47c3b21229c55a91b421aec3bbebd425fd
treee6128d0323f4dbb03b51c5f08853e312084dff82
parent40570e17319d96adcfebaaa8c98b1e16f58902f0
Add support for "ww" in date format (#12037)

Calculate number of the week in the year based on Date. Note, support for "ww" is missing from GWT DateTimeFormat and java.util.Calendar is not supported in GWT, hence DIY method is needed.

Fixes: #10603
client/src/main/java/com/vaadin/client/DateTimeService.java
server/src/main/java/com/vaadin/ui/AbstractLocalDateField.java
uitest/src/main/java/com/vaadin/tests/components/datefield/AbstractDateFieldTest.java