summaryrefslogtreecommitdiffstats
path: root/Dozentenmodul/src/gui/lecture/EditLectureSearch_GUI.java
diff options
context:
space:
mode:
authorTobias Spitzer2014-08-26 09:36:49 +0200
committerTobias Spitzer2014-08-26 09:36:49 +0200
commitbbcf6036c13fb32572e2e388701c948d0003356b (patch)
tree3d2055aae33771823fdbb2d49318c10fb4224acc /Dozentenmodul/src/gui/lecture/EditLectureSearch_GUI.java
parentLöschen der XML funktioniert nun, sowie das bearbeiten der XML ohne das eine ... (diff)
downloadtutor-module-bbcf6036c13fb32572e2e388701c948d0003356b.tar.gz
tutor-module-bbcf6036c13fb32572e2e388701c948d0003356b.tar.xz
tutor-module-bbcf6036c13fb32572e2e388701c948d0003356b.zip
Start und Enddatum der Lectures sind nun im 24H Format verfügbar
Diffstat (limited to 'Dozentenmodul/src/gui/lecture/EditLectureSearch_GUI.java')
-rw-r--r--Dozentenmodul/src/gui/lecture/EditLectureSearch_GUI.java10
1 files changed, 6 insertions, 4 deletions
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<server.Lecture> 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<String,String> res=client.getLectureData(id);
labelName.setText(res.get("name"));
labelAktiv.setText(res.get("isActive"));