[ 
https://issues.apache.org/jira/browse/VELTOOLS-209?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claude Brisson moved VELOCITY-956 to VELTOOLS-209:
--------------------------------------------------

                  Key: VELTOOLS-209  (was: VELOCITY-956)
    Affects Version/s: 3.1
                       2.0
                           (was: 2.3)
              Project: Velocity Tools  (was: Velocity)

> velocity 1.7 vs velocity 2.3: evaluation of scripts with empty value is not 
> backward compatible
> -----------------------------------------------------------------------------------------------
>
>                 Key: VELTOOLS-209
>                 URL: https://issues.apache.org/jira/browse/VELTOOLS-209
>             Project: Velocity Tools
>          Issue Type: Bug
>    Affects Versions: 3.1, 2.0
>            Reporter: ambika
>            Priority: Major
>
> {*}Script{*}:     
>  
>   "vLATE_GATE_IN_6":"#set( $inTimeZone = 
> $date.getTimeZone().getTimeZone('Europe/Berlin') )\n\n#set( $outTimeZone = 
> $date.getTimeZone().getTimeZone('Asia/Shanghai') )\n\n#set( $locale = 
> $date.getLocale() )\n\n#set( $myDate = 
> $convert.parseDate(${*}{lead.lateGateIn}{*},\"yyyy-MM-dd 
> HH:mm\",$locale,$inTimeZone) )\n\n${date.format('yyyy-MM-dd hh:mm 
> a',$myDate,$locale,$outTimeZone)} "
> {*}note{*}: lead.lateGateIn = "" in the values 
> there are multiple other scripts vLATE_GATE_IN_5, vLATE_GATE_IN_4 but in the 
> script vLATE_GATE_IN_4 , the values for convert.parseDate is given as below:
> $convert.parseDate("2022-04-22") 
>  
> {*}Issue{*}: 
> Older version of velocity evaluates the script vLATE_GATE_IN_6 to: 
> |Time):\\n\\n\\n\\n\\n2022-04-22 11:00 AM|
>  
> Newer version of velocity evaluates the script vLATE_GATE_IN_6 to: 
> | |Time):\\n\\n\\n\\n\\n${date.format('yyyy-MM-dd hh:mm 
> a',$myDate,$locale,$outTimeZone)}| |



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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@velocity.apache.org
For additional commands, e-mail: dev-h...@velocity.apache.org

Reply via email to