Project

General

Profile

Bug #8311

Calendar calculation

Added by Vladimir Savchik 7 months ago. Updated 12 days ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
04/06/2021
Due date:
% Done:

100%

Estimated time:

Description

Version: 4.5.0

Steps to reproduce:
create WDate, open calendar

What's wrong:
Monday-Sunday top headers ok
but e.g. 06/04 is Thursday, 2 days week later

Reason:
WDate:788
if (c.get(Calendar.DAY_OF_WEEK) == (gw == 1 ? 7 : gw - 1))
should be
if (c.get(Calendar.DAY_OF_WEEK) == (gw == 7 ? 1 : gw + 1))
correcting to Monday=1 from java Sunday=1

#1

Updated by Korneel Dumon 7 months ago

  • Assignee set to Korneel Dumon

It's also visible in the online widget-gallery: http://jwt.emweb.be/jwt-gallery/gallery/forms/date-_-time-entry

Thanks for reporting.

#2

Updated by Roel Standaert 12 days ago

  • Status changed from New to Resolved
  • Target version set to 4.5.1
  • % Done changed from 0 to 100

Also available in: Atom PDF