jmvermeulen / google-apps-sso-sample

Automatically exported from code.google.com/p/google-apps-sso-sample
Apache License 2.0
0 stars 0 forks source link

Util.java does not handle correctly the timezone #18

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. The service is run in a non UTC timezone country
2. try to log in.

What is the expected output? What do you see instead?
I expect to be logged.

instead
"Google Apps - This service cannot be accessed because your login 
credentials are not yet valid. Please log in and try again.     
This service cannot be accessed because your login credentials are not yet 
valid. Please log in and try again.
We are unable to process your request at this time, please try again 
later."

What version of the product are you using? On what operating system?
svn/trunk/java/samlsource/src/util/Util.java r32

Please provide any additional information below.
several Calendar.getInstance() should be replaced by
Calendar.getInstance(TimeZone.getTimeZone("UTC"))
as for the DateFormat DATE_TIME_FORMAT instance.

Original issue reported on code.google.com by chatelet...@gmail.com on 19 Nov 2008 at 4:38

GoogleCodeExporter commented 9 years ago
Thanks!

Original comment by acc%goog...@gtempaccount.com on 19 Nov 2008 at 8:50