You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2023/04/07 13:14:00 UTC

[jira] [Work logged] (WW-5295) s:date ignores LocalTime

     [ https://issues.apache.org/jira/browse/WW-5295?focusedWorklogId=855503&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-855503 ]

ASF GitHub Bot logged work on WW-5295:
--------------------------------------

                Author: ASF GitHub Bot
            Created on: 07/Apr/23 13:13
            Start Date: 07/Apr/23 13:13
    Worklog Time Spent: 10m 
      Work Description: lukaszlenart merged PR #677:
URL: https://github.com/apache/struts/pull/677




Issue Time Tracking
-------------------

    Worklog Id:     (was: 855503)
    Time Spent: 0.5h  (was: 20m)

> s:date ignores LocalTime
> ------------------------
>
>                 Key: WW-5295
>                 URL: https://issues.apache.org/jira/browse/WW-5295
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Tags
>    Affects Versions: 6.1.2
>            Reporter: nikos dimitrakas
>            Priority: Major
>             Fix For: 6.2.0
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> After upgrading from v5 to v6 I got an error with s:date not working with java.sql.Time. Since WW-5272 is not yet released, I thought I will convert java.sql.Time to LocalTime by simply changing the ognl expression in my s:date tags. 
> For example from 
> <s:date format="HH:mm" name="sqlTime"/>
> to
> <s:date format="HH:mm" name="sqlTime.toLocalTime()"/>
> This way there was no UnsupportedOperationException, but it turns out that nothing happens. In the class org.apache.struts2.components.Date there is no case for LocalTime and we end up with a log message LocalTime isn't supported!.
> There should be support for both java.sql.Time (as per WW-5272) and for LocalTime with similar behaviour.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)