XPages: incomplete implementation of Date object?

I just tried to implement something like this in a querySaveDocument event of a document datasource:

var wDt1 = new Date();

var wMs = wDt.getUTCMilliseconds();

Upon submit I then receive an error:

=============

Error source

Page Name:/home.xsp

Control Id: _id4

Property: querySaveDocument

Exception

Error saving data source dominoDocument2

Error while executing JavaScript action expression

Script interpreter error, line=38, col=39: Unknown member ‘getUTCMilliseconds’ in Java class ‘java.util.Date’

=============

I then tried

wDt.getMilliseconds();

instead, with the same result.

Can someone confirm this? And, if so, please open a PMR for me, if none exists yet?

Thanks,

-Lothar

Subject: I’m not able to reproduce this…

…using…

		<xp:this.querySaveDocument>

			<xp:setValue binding="#{document1.testDate}">

				<xp:this.value><![CDATA[#{javascript:var dt = new Date();

return dt.getMilliseconds()}]]></xp:this.value>

			</xp:setValue>

		</xp:this.querySaveDocument>

Though I’m probably missing something Lothar?

Subject: Gone…

OK, Domino designer or the developer (or both) must have had a bad day or whatever; at least there’s no such error coming up now, using the same code… don’t know.

Thanks for checking anyways, regards,

-Lothar