Dear Guys, I have the following policy for converting time syntax:

<actions>
<do-set-local-variable name="ValidFrom">
<arg-string>
<token-substring length="2" start="4">
<token-op-attr name="ValidFrom"/>
</token-substring>
<token-text xml:space="preserve">/</token-text>
<token-substring length="2" start="6">
<token-op-attr name="ValidFrom"/>
</token-substring>
<token-text xml:space="preserve">/</token-text>
<token-substring length="4" start="0">
<token-op-attr name="ValidFrom"/>
</token-substring>
</arg-string>
</do-set-local-variable>
<do-reformat-op-attr name="ValidFrom">
<arg-value type="time">
<token-xpath expression="round(jdatearse($ValidFrom)div
1000)"/>
</arg-value>
</do-reformat-op-attr>
</actions>

It working fine on my designer, correct value in the result. However
when I deploy this to my customer environment, value become wrong for
date earlier than 19801020, meaning 19801019 will return as 18 Oct 1980
23:00:00. Guys, any where goes wrong on this? Thanks.


--
kkyen
------------------------------------------------------------------------
kkyen's Profile: http://forums.novell.com/member.php?userid=8342
View this thread: http://forums.novell.com/showthread.php?t=432993