From 3c51a22b21a29fe27e58b68517b507ef2481c0d2 Mon Sep 17 00:00:00 2001 From: hns Date: Wed, 30 Oct 2002 18:06:32 +0000 Subject: [PATCH] Change date format to display full hours when returning a date property as string. --- src/helma/objectmodel/Property.java | 2 +- src/helma/objectmodel/db/Property.java | 67 +------------------------- 2 files changed, 2 insertions(+), 67 deletions(-) diff --git a/src/helma/objectmodel/Property.java b/src/helma/objectmodel/Property.java index 4592e903..5dc82fe3 100644 --- a/src/helma/objectmodel/Property.java +++ b/src/helma/objectmodel/Property.java @@ -132,7 +132,7 @@ public final class Property implements IProperty, Serializable { case BOOLEAN: return "" + bvalue; case DATE: - SimpleDateFormat format = new SimpleDateFormat ("dd.MM.yy hh:mm"); + SimpleDateFormat format = new SimpleDateFormat ("dd.MM.yy HH:mm"); return format.format (new Date (lvalue)); case INTEGER: return Long.toString (lvalue); diff --git a/src/helma/objectmodel/db/Property.java b/src/helma/objectmodel/db/Property.java index d87b2180..01ff127e 100644 --- a/src/helma/objectmodel/db/Property.java +++ b/src/helma/objectmodel/db/Property.java @@ -287,7 +287,7 @@ public final class Property implements IProperty, Serializable, Cloneable { case BOOLEAN: return bvalue ? "true" : "false"; case DATE: - SimpleDateFormat format = new SimpleDateFormat ("dd.MM.yy hh:mm"); + SimpleDateFormat format = new SimpleDateFormat ("dd.MM.yy HH:mm"); return format.format (new Date (lvalue)); case INTEGER: return Long.toString (lvalue); @@ -354,68 +354,3 @@ public final class Property implements IProperty, Serializable, Cloneable { - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -