Jump to content
  • Time Input Control Does Not Work For PM


    kashoory
    Assigned User anonymous
    CategoryBug report
    PriorityNormal
    ReproducibilityAlways
    ResolutionDuplicate
    SeverityMajor
    StatusNew
    Versionv5.6.1

    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.

     



    User Feedback

    Recommended Comments

    Changed Assigned User from - to @User_306070


    There is an ugly incorrect definition in files:jasperserver-pro/scripts/common/util/parse/date.jsjasperserver-pro/scripts/common/util/parse/time.jsISO_8601_TIME_PATTERN is defined as "hh:mm:ss" instead of "HH:mm:ss"! Just correct it in both files and reoptimize all scripts if optimization is enabled.
    Link to comment
    Share on other sites


×
×
  • Create New...