summaryrefslogtreecommitdiffstats
path: root/dozentenmodul/src/main/java/gui/lecture
diff options
context:
space:
mode:
authorNino Breuer2015-05-20 17:08:08 +0200
committerNino Breuer2015-05-20 17:08:08 +0200
commit1d8ef80202ebaeba26ce7996fb97c226baaa6be8 (patch)
tree661f7a3dfd372cc8f5ba1c36816708b2d4f74787 /dozentenmodul/src/main/java/gui/lecture
parent[client] GuiManager class cleanup + bundled priv/pub functions... (diff)
downloadtutor-module-1d8ef80202ebaeba26ce7996fb97c226baaa6be8.tar.gz
tutor-module-1d8ef80202ebaeba26ce7996fb97c226baaa6be8.tar.xz
tutor-module-1d8ef80202ebaeba26ce7996fb97c226baaa6be8.zip
• fixed Bug whereas Lectures weren't editable anymore due to date-parsing error
• IdP is stored in config file, default 0. should IdP-Authentication be default now? • Fixed bug: version number was replaced by "unknown".. it is unknown, why that happened :) • Optimized view for additional contacts in images
Diffstat (limited to 'dozentenmodul/src/main/java/gui/lecture')
-rw-r--r--dozentenmodul/src/main/java/gui/lecture/EditLectureSearch_GUI.java27
1 files changed, 26 insertions, 1 deletions
diff --git a/dozentenmodul/src/main/java/gui/lecture/EditLectureSearch_GUI.java b/dozentenmodul/src/main/java/gui/lecture/EditLectureSearch_GUI.java
index 9e7c40e5..bc5be1d9 100644
--- a/dozentenmodul/src/main/java/gui/lecture/EditLectureSearch_GUI.java
+++ b/dozentenmodul/src/main/java/gui/lecture/EditLectureSearch_GUI.java
@@ -345,15 +345,40 @@ public class EditLectureSearch_GUI extends JInternalFrame {
tablemyLectures.convertRowIndexToModel(tablemyLectures.getSelectedRow()),
6).toString());
+
+
int zweitesLeerzeichen = date.indexOf(" ", date.indexOf(" ") + 1);
+ System.out.println("date: "+date.toString());
+
String startdate = date.substring(0, zweitesLeerzeichen);
String enddate = date.substring(zweitesLeerzeichen);
+
SimpleDateFormat out = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
+ //SimpleDateFormat out = new SimpleDateFormat("yy-MM-dd HH:mm");
+
SimpleDateFormat in = new SimpleDateFormat("dd.MM.yyyy HH:mm:ss");
+ //SimpleDateFormat in = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
+ //SimpleDateFormat in = new SimpleDateFormat("yy-MM-dd HH:mm:ss");
+
+ /*
+ String startdate = date.substring(0, zweitesLeerzeichen);
+ String enddate = date.substring(zweitesLeerzeichen);
+ SimpleDateFormat out = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
+ //SimpleDateFormat in = new SimpleDateFormat("dd.MM.yyyy HH:mm:ss");
+ SimpleDateFormat in = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
+ */
try {
- enddate = out.format(in.parse(enddate));
+
startdate = out.format(in.parse(startdate));
+ enddate = out.format(in.parse(enddate));
+
+ System.out.println("startdate: "+startdate);
+ System.out.println("enddate: "+enddate);
+
+ //in.parse("2014-12-12 15:50:00");
+ //out.parse("");
+
} catch (ParseException e2) {
e2.printStackTrace();