mirror of https://github.com/zlatinb/muwire
fix conversion logic
parent
798125e645
commit
ffc7f1748a
|
@ -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')")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue