Forums > MaxMSP

4.6b11 bug: jstrigger Date() returns wrong date

July 10, 2006 | 3:44 am

The Date() function when used in jstrigger is returning a 4-day-old date in 4.6b11. Works as expected in 4.5.7.

Patch:

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P message 263 130 57 196617 time , date;
#P newex 263 226 75 196617 print max-date;
#P newex 263 192 50 196617 zl join;
#P newex 263 160 50 196617 date;
#P button 123 123 15 0;
#P newex 123 192 70 196617 print js-date;
#P newex 123 160 95 196617 jstrigger (Date());
#P connect 2 0 0 0;
#P connect 0 0 1 0;
#P connect 3 0 4 0;
#P connect 3 1 4 1;
#P connect 4 0 5 0;
#P connect 6 0 3 0;
#P window clipboard copycount 7;

Output:

max-date: 7 10 2006 15 43 16
js-date: Thu Jul 06 2006 15:43:17 GMT+0716 (NZDT)


Viewing 1 post (of 1 total)