|
From: Jesse M. <jma...@az...> - 2007-03-27 06:32:30
|
I'm having a problem with sending a Date over the wire from Java to
PHP using Hessian 1.0.5RC2. From the java side:
millis: 1174970145000 (Mon Mar 26 21:35:45 PDT 2007)
Is getting turned into a DateTime on the PHP side of:
DateTime Object
(
[day] => 05
[month] => 02
[year] => 2007
[hour] => 03
[minute] => 32
[second] => 57
[_timestamp] => 1170675177.704
[weekDay] => 1
)
Simple test:
public Date testDate() {
Date d = new Date(1174970145000L);
logger.info("Date:" + d);
return d;
}
Output: Date:Mon Mar 26 21:35:45 PDT 2007
$res = $question_proxy->testDate();
pre_print($res);
Output: 2007-02-05 03:32:57
|