Skip to content

Commit

Permalink
Merge pull request #38 from jrowny/patch-1
Browse files Browse the repository at this point in the history
IssueInstant should be UTC
  • Loading branch information
pitbulk committed Nov 18, 2015
2 parents f9c4ee9 + b793ff6 commit 65ce16e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/com/onelogin/saml/AuthRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import java.net.URLEncoder;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.TimeZone;
import java.util.Map;
import java.util.UUID;
import java.util.zip.Deflater;
Expand All @@ -34,6 +35,7 @@ public AuthRequest(AppSettings appSettings, AccountSettings accSettings){
this.accountSettings = accSettings;
id="_"+UUID.randomUUID().toString();
SimpleDateFormat simpleDf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'");
simpleDf.setTimeZone(TimeZone.getTimeZone("UTC"));
issueInstant = simpleDf.format(new Date());
}

Expand Down

0 comments on commit 65ce16e

Please sign in to comment.