By pw96pw96pw96
on Mon, 12/30/2013 - 21:40
Dear Vuforia,
In the VWS Java Sample code, I found the following line:
request.setHeader(new BasicHeader("Date", DateUtils.formatDate(new Date()).replaceFirst("[+]00:00$", "")));
The DateUtils.formatDate(new Date()) produces a RFC 1123 string which is exactly what needed. So what is the purpose of replaceFirst("[+]00:00$", "")?
Happy New Year.
Best Regards,
Peng
VWS Java Sample
Good question. Try removing the replaceFirst() call and see what you get. I assume that the developer had a good reason for trimming the date string in that way.