[ https://issues.apache.org/jira/browse/VELTOOLS-209?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claude Brisson updated VELTOOLS-209: ------------------------------------ Component/s: GenericTools > 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 > Components: GenericTools > Affects Versions: 2.0, 3.1 > 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