|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #78235 User Group Event form day-of-week field off-by-one error
Submitted: 2019-06-30 14:57 UTC Modified: 2019-06-30 16:00 UTC
From: rowan dot collins at gmail dot com Assigned:
Status: Verified Package: Website problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2019-06-30 14:57 UTC] rowan dot collins at gmail dot com
I am attempting to create a listing for a recurring User Group event at

When I select "First Wednesday of the month" on the form and click "Preview", it displays "First Tuesday of the month" in the preview. To get "First Wednesday", I have to select "Thursday" from the drop-down. In other words, the day displayed in the preview is a day before what's displayed on the form.

I note that the list is shown Monday-first; perhaps there is a mismatch with a system expecting Sunday-first ordering. In case it's relevant, my browser is set to Europe/London timezone and en-GB locale.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2019-06-30 16:00 UTC]
-Status: Open +Status: Verified
 [2019-06-30 16:00 UTC]
> I note that the list is shown Monday-first; […]

That depends on the current year, since the list is generated from
the first seven days of April[1].  The preview seems to use the
submitted month instead[2], what would explain the reported
behavior for September.  Apparently, after actual form submission
the day is calculated for April 2001[3] which likely yields yet
another result.

[1] <>
[2] <>
[3] <>
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Wed Oct 05 09:05:52 2022 UTC