Date Format

瀏覽次數:12 次
跳到第一則未讀訊息

MDD

未讀,
2015年11月17日 凌晨3:54:502015/11/17
收件者:Genson user group
Hi,

I have one more question. Has anything changed in recent versions (0.98 -> 1.3 in my case) to do with date formatting? I am asking because I am now seeing unix-timestamps in my json, instead of the actual date. I am setting this in the GensonBuilder:

  1. .useDateFormat("yyyy-MM-dd'T'HH:mm:ss")


Thanks in advance,
Michael

MDD

未讀,
2015年11月17日 凌晨4:02:452015/11/17
收件者:Genson user group
Ok, I will answer this myself as the solution is pretty easy. You simply need to set this on the GensonBuilder too now:

.useDateAsTimestamp(false)

Thanks,
Michael
回覆所有人
回覆作者
轉寄
0 則新訊息