fix conversion logic

pull/53/head
Zlatin Balevsky 2020-10-19 17:43:05 +01:00
parent 798125e645
commit ffc7f1748a
No known key found for this signature in database
GPG Key ID: A72832072D525E41
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ class H2HostCache extends HostCache {
long timestamp = System.currentTimeMillis()
if (entry.lastSuccessfulAttempt != null)
timestamp = entry.lastSuccessfulAttempt
def tstamp = Date(timestamp)
def tstamp = new Date(timestamp)
tstamp = SDF.format(tstamp)
sql.execute("insert into HOST_ATTEMPTS VALUES ('${dest.toBase64()}', '$tstamp', 'SUCCESSFUL')")
}