]> WPIA git - gigi.git/blobdiff - tests/club/wpia/gigi/testUtils/ConfiguredTest.java
Merge "add: user client certificate must have a verification within <=24 months"
[gigi.git] / tests / club / wpia / gigi / testUtils / ConfiguredTest.java
index 322af0bc55e6d15e2b744316b8431b0c2c4d17c4..43be01db7d2b64443c484d6ce751274fde334aa3 100644 (file)
@@ -360,9 +360,11 @@ public abstract class ConfiguredTest {
     }
 
     public static void add100Points(int uid) {
-        try (GigiPreparedStatement ps2 = new GigiPreparedStatement("INSERT INTO `notary` SET `from`=?, `to`=?, points='100'")) {
+        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
+        try (GigiPreparedStatement ps2 = new GigiPreparedStatement("INSERT INTO `notary` SET `from`=?, `to`=?, points='100', `date`=?")) {
             ps2.setInt(1, uid);
             ps2.setInt(2, User.getById(uid).getPreferredName().getId());
+            ps2.setString(3, sdf.format(new Date(System.currentTimeMillis())));
             ps2.execute();
         }
     }