Simple HTTP Framework and time issue

Posted by Deniz Acay on Stack Overflow See other posts from Stack Overflow or by Deniz Acay
Published on 2010-06-15T22:43:25Z Indexed on 2010/06/16 1:32 UTC
Read the original article Hit count: 362

Filed under:
|
|
|
|

I'm using Simple Framework for my recent project, and there is a problem with the date headers generated by the system. I can get my local time from Date class correctly, but setDate method of Simple's Response class sets date in milliseconds and when i do that by calling System.currentTimeInMillis, dates in response headers are incorrect. is there any way to solve this problem with Simple Framework? If not, what can i do except calling set method with a date string? Thanks in advance...

EDIT: Date in the headers are in wrong timezone. And i also tried Calendar.getInstance().getTimeInMilis() method.

© Stack Overflow or respective owner

Related posts about java

Related posts about http