Uh oh!
There was an error while loading. Please reload this page.
Fix instrument schedule datetime-local fields showing midnight on Firefox browsers - #1265
Fix instrument schedule datetime-local fields showing midnight on Firefox browsers#1265ankurjuneja wants to merge 7 commits into
Conversation
This reverts commit bbc2572.
ankurjuneja
commented
Jul 26, 2026
labkey-danield
left a comment
There was a problem hiding this comment.
This looks correct to me, but I'll defer to Josh.
Should this target 26.7? Helping to keep the noise down in ESR builds is always appreciated.
labkey-jeckels
commented
Jul 27, 2026
I agree with Dan that it would be good to patch in 26.7. The fix here seems effective in fixing the test failure but incomplete. My Claude review came to a similar conclusion about patching Finding #1 — Medium — Incomplete fix / user-visible bug remains
Finding #2 — Medium — Pre-existing bug in the same feature, same symptom
Finding #3 — Low — Test coverage
Finding #4 — Low — Duplication / placement
|
ankurjuneja
commented
Jul 27, 2026
@labkey-jeckels the Finding 1 that is in attached bug report too, the two files that need the change:
my question is for the min.js- jQuery.lib.xml has compileInProductionMode="false" I need to make change to the min file too for production, is that OK? |
labkey-jeckels
commented
Jul 27, 2026
Yes, I saw the PDF and that it was essentially the same thing. And yes, patching both flavors of the script seems correct. |
ankurjuneja
commented
Jul 27, 2026
transferred to 26.7 - #1266 |
Rationale
The instrument scheduler populated its two datetime-local inputs via DateFormat.format.date(...). In timezones whose Date.toTimeString() label contains a colon (e.g. Honolulu → (GMT-10:00)), jquery-dateFormat's parseTime() splits the
whole string on , gets more than 3 parts, bails, and pads the time to 00:00. Both start and end then collapsed to midnight, so start == end and the server rejected the save with "StartTime must be before EndTime" — failing the test on
the Honolulu TeamCity agent while passing elsewhere.
Fix: format the start/end fields directly to datetime-local's fixed yyyy-MM-ddTHH:mm wire format from the Date's own local fields, bypassing the buggy library path.
I think we need to fix the library path. Attached report.
DateTZBug.pdf
Related Pull Requests
Changes