From bbcf6036c13fb32572e2e388701c948d0003356b Mon Sep 17 00:00:00 2001 From: Tobias Spitzer Date: Tue, 26 Aug 2014 09:36:49 +0200 Subject: Start und Enddatum der Lectures sind nun im 24H Format verfügbar --- Dozentenmodul/src/gui/lecture/EditLectureSearch_GUI.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'Dozentenmodul/src/gui/lecture/EditLectureSearch_GUI.java') diff --git a/Dozentenmodul/src/gui/lecture/EditLectureSearch_GUI.java b/Dozentenmodul/src/gui/lecture/EditLectureSearch_GUI.java index 5a89ea48..ff35ad43 100644 --- a/Dozentenmodul/src/gui/lecture/EditLectureSearch_GUI.java +++ b/Dozentenmodul/src/gui/lecture/EditLectureSearch_GUI.java @@ -760,12 +760,13 @@ public class EditLectureSearch_GUI extends JFrame { // Hole eine Liste der Images lectures = client.getLectureList(); Iterator i = lectures.iterator(); - SimpleDateFormat in=new SimpleDateFormat("yyyy-MM-dd hh:mm:ss"); - SimpleDateFormat out=new SimpleDateFormat("dd.MM.yyyy hh:mm:ss"); + SimpleDateFormat in=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); + SimpleDateFormat out=new SimpleDateFormat("dd.MM.yyyy HH:mm:ss"); int x = 0; while (i.hasNext()) { // erzeuge Objekte fuer die Tabelle + Object[] obj = { lectures.get(x).lecturename, lectures.get(x).desc, @@ -776,6 +777,7 @@ public class EditLectureSearch_GUI extends JFrame { lectures.get(x).imagename," " ,lectures.get(x).id }; // Fuege diese Objekte der Tabelle hinzu model.addRow(obj); + x++; i.next(); @@ -790,8 +792,8 @@ public class EditLectureSearch_GUI extends JFrame { } public void writeLectureData(String id) throws TException, ParseException{ - SimpleDateFormat in=new SimpleDateFormat("yyyy-MM-dd hh:mm:ss"); - SimpleDateFormat out=new SimpleDateFormat("dd.MM.yyyy hh:mm:ss"); + SimpleDateFormat in=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); + SimpleDateFormat out=new SimpleDateFormat("dd.MM.yyyy HH:mm:ss"); Map res=client.getLectureData(id); labelName.setText(res.get("name")); labelAktiv.setText(res.get("isActive")); -- cgit v1.2.3-55-g7522