Project

General

Profile

Actions

Bug #8311

closed

Calendar calculation

Added by Vladimir Savchik almost 3 years ago. Updated about 2 years ago.

Status:
Closed
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

Actions #1

Updated by Korneel Dumon almost 3 years 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.

Actions #2

Updated by Roel Standaert over 2 years ago

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

Updated by Roel Standaert about 2 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF