From: David ‘Bombe’ Roden Date: Mon, 1 Jun 2009 14:11:45 +0000 (+0200) Subject: Don’t set start time when before the upload starts. X-Git-Tag: 0.7.1~5 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=cef7106cb022aed276eeacc2c7028ed69340764e;p=jSite.git Don’t set start time when before the upload starts. --- diff --git a/src/de/todesbaum/jsite/gui/ProjectInsertPage.java b/src/de/todesbaum/jsite/gui/ProjectInsertPage.java index 63eaf49..5fe946e 100644 --- a/src/de/todesbaum/jsite/gui/ProjectInsertPage.java +++ b/src/de/todesbaum/jsite/gui/ProjectInsertPage.java @@ -254,12 +254,12 @@ public class ProjectInsertPage extends TWizardPage implements InsertListener, Cl * {@inheritDoc} */ public void projectInsertStarted(final Project project) { - startTime = System.currentTimeMillis(); + SwingUtilities.invokeLater(new Runnable() { @SuppressWarnings("synthetic-access") public void run() { - startTimeLabel.setText(DateFormat.getDateTimeInstance().format(new Date(startTime))); + startTimeLabel.setText(DateFormat.getDateTimeInstance().format(new Date())); } }); }