[#3929] - ISO_8601_TIME_PATTERN is defined as "hh:mm:ss" while it must be "HH:mm:ss"!

Category:
Bug report
Priority:
Normal
Status:
New
Project: Severity:
Minor
Resolution:
Open
Component: Reproducibility:
Always
Assigned to:

I created a report in Jasper Studio 5.6.1 that used a time input control. Published it on JasperReports Server AWS. Created an input control for my report with the type time. I happened to find that when I enter time between 12AM and 12:59:59PM, the return value is okay, while after that it is entered_time-12hours. i.e. it returns 01:25:28 for both 01:25:28 and 13:25:28.

I found the reason. There is an ugly incorrect definition in files:
jasperserver-pro/scripts/common/util/parse/date.js
jasperserver-pro/scripts/common/util/parse/time.js

ISO_8601_TIME_PATTERN is defined as "hh:mm:ss" while it must be "HH:mm:ss"!
Just correct it in both files and go through reoptimization procedure if optimazation is enabled (refer to section "Customizing JavaScript Files" in JasperServer Ultimate Guide).

v5.6.1
kashoory's picture
485
Joined: Apr 23 2014 - 5:19pm
Last seen: 2 years 1 month ago

1 Comment:

#1

Same bug in Jasperserver CE 6.0.1.
I can't find the files to edit.
Does anybody know where they are?

Feedback
randomness