From 5e266f7ace9dc5e7ea1f8eaf96b4f717285ade8b Mon Sep 17 00:00:00 2001 From: Michael Wilson Date: Thu, 30 Oct 2014 17:51:11 +0100 Subject: Fixed all date formats to 24h format in complete program --- dozentenmodulserver/src/main/java/sql/SQL.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'dozentenmodulserver/src/main/java/sql') diff --git a/dozentenmodulserver/src/main/java/sql/SQL.java b/dozentenmodulserver/src/main/java/sql/SQL.java index 4f6321eb..e79cf159 100644 --- a/dozentenmodulserver/src/main/java/sql/SQL.java +++ b/dozentenmodulserver/src/main/java/sql/SQL.java @@ -181,7 +181,7 @@ public class SQL { public String setPerson(String login, String lastname, String firstname, String mail, Date lastlogin, String Institution) { - DateFormat formatter = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss"); + DateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); try { Connection con = getConnection(); Statement stm = con.createStatement(); @@ -242,7 +242,7 @@ public class SQL { String desc, String imagePath, long filesize, String shareMode, String pk_os) { - DateFormat formatter = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss"); + DateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); int internet_bol = 0; int license_bol = 0; @@ -672,7 +672,7 @@ public class SQL { int imageversion, String name, String desc, String shortdesc, String start, String end, boolean isactive) { - DateFormat formatter = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss"); + DateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); int active_bol = 0; if (isactive == true) { @@ -790,7 +790,7 @@ public class SQL { long filesize, String shareMode, String ospk) { try { Connection con = getConnection(); - DateFormat formatter = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss"); + DateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); Statement stm = con.createStatement(); int newVersion = Integer.parseInt(version) + 1; @@ -903,7 +903,7 @@ public class SQL { String name, String newName, String desc, String shortdesc, String start, String end, boolean isactive, String id) { - DateFormat formatter = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss"); + DateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); int active_bol = 0; if (isactive == true) { -- cgit v1.2.3-55-g7522