c# - Make WCF DateTime Compatible for Java client -
i'am designing wcf service wich consumed java client returning array of object .
i design small java application display output object collection fields.
all fine except datetime wich displayed follow :
java.util.gregoriancalendar[time=1370969700000,arefieldsset=true,areallfieldsset=true,lenient=true,zone=sun.util.calendar.zoneinfo[id="gmt+01:00",offset=3600000,dstsavings=0,usedaylight=false,transitions=0,lastrule=null],firstdayofweek=2,minimaldaysinfirstweek=4,era=1,year=2013,month=5,week_of_year=24,week_of_month=2,day_of_month=11,day_of_year=162,day_of_week=3,day_of_week_in_month=2,am_pm=1,hour=5,hour_of_day=17,minute=55,second=0,millisecond=0,zone_offset=3600000,dst_offset=0]
could @ least guide me best pratice or attribute add in service prevent issue ?
is there java turn around ?
thank in advance
a java calendar objects gives information need precisely definte moment in time: time (internally in millisecs since epoch 01/01/1970), timezone, ....
so there nothing change behaviour, except in code can obtain "date" object (also containing time) calendar object obtained using gettime() method.
Comments
Post a Comment