From 3f7da72d00e6027097cec8de2cd1462eecf2cbb5 Mon Sep 17 00:00:00 2001 From: Michael Wilson Date: Tue, 26 Aug 2014 10:26:08 +0200 Subject: -Bearbeiten einer Veranstaltung möglich -Datumsformate bei Veranstlatung in 24h-Modus geändert --- Dozentenmodul/src/gui/lecture/EditLectureSearch_GUI.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 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 ff35ad43..0b0bc4d8 100644 --- a/Dozentenmodul/src/gui/lecture/EditLectureSearch_GUI.java +++ b/Dozentenmodul/src/gui/lecture/EditLectureSearch_GUI.java @@ -454,8 +454,8 @@ public class EditLectureSearch_GUI extends JFrame { 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 out=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); + SimpleDateFormat in=new SimpleDateFormat("dd.MM.yyyy HH:mm:ss"); try { enddate=out.format(in.parse(enddate)); startdate=out.format(in.parse(startdate)); @@ -465,10 +465,10 @@ public class EditLectureSearch_GUI extends JFrame { } DateFormat df = new SimpleDateFormat( - "yyyy-MM-dd hh:mm:ss"); + "yyyy-MM-dd HH:mm:ss"); try { - // Format has to be "yyyy-MM-dd hh:mm:ss" + // Format has to be "yyyy-MM-dd HH:mm:ss" Lecture.lecture.setEnddate(df .parse(enddate)); Lecture.lecture.setStartdate(df @@ -539,8 +539,8 @@ public class EditLectureSearch_GUI extends JFrame { 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 out=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); + SimpleDateFormat in=new SimpleDateFormat("dd.MM.yyyy HH:mm:ss"); try { enddate=out.format(in.parse(enddate)); startdate=out.format(in.parse(startdate)); @@ -549,10 +549,10 @@ public class EditLectureSearch_GUI extends JFrame { e2.printStackTrace(); } DateFormat df = new SimpleDateFormat( - "yyyy-MM-dd hh:mm:ss"); + "yyyy-MM-dd HH:mm:ss"); try { - // Format has to be "yyyy-MM-dd hh:mm:ss" + // Format has to be "yyyy-MM-dd HH:mm:ss" Lecture.lecture.setEnddate(df .parse(enddate)); Lecture.lecture.setStartdate(df -- cgit v1.2.3-55-g7522