File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
java/org/cgiar/ccafs/marlo/action/json/superadmin Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,14 @@ public String execute() throws Exception {
96
96
token = jsonResponse .getString ("token" );
97
97
SimpleDateFormat dateFormat = new SimpleDateFormat ("yyyy-MM-dd" );
98
98
99
- Date dueDate = dateFormat .parse (jsonResponse .getString ("due_date" ));
99
+ Date dueDate = null ;
100
+ if (jsonResponse .has ("due_date" )) {
101
+ dueDate = dateFormat .parse (jsonResponse .getString ("due_date" ));
102
+ }
103
+
104
+ if (jsonResponse .has ("updated_at" )) {
105
+ dueDate = dateFormat .parse (jsonResponse .getString ("updated_at" ));
106
+ }
100
107
101
108
// Save token in DB
102
109
if (token != null && !token .isEmpty ()) {
Original file line number Diff line number Diff line change @@ -5337,6 +5337,7 @@ tipParameter.tipStatusService= Status Service Endpoint
5337
5337
tipParameter.tokenValue = Token Value
5338
5338
tipParameter.updateToken = Update Token
5339
5339
tipParameter.tokenDueDate = Token Due Date
5340
+ tipParameter.tipEncryptionKey = Encryption Key
5340
5341
5341
5342
# pop-up guide
5342
5343
login.popup.title =Login
You can’t perform that action at this time.
0 commit comments