Change date format to display full hours when returning a date property as string.
This commit is contained in:
parent
8f684b6ec9
commit
3c51a22b21
2 changed files with 2 additions and 67 deletions
|
@ -132,7 +132,7 @@ public final class Property implements IProperty, Serializable {
|
||||||
case BOOLEAN:
|
case BOOLEAN:
|
||||||
return "" + bvalue;
|
return "" + bvalue;
|
||||||
case DATE:
|
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));
|
return format.format (new Date (lvalue));
|
||||||
case INTEGER:
|
case INTEGER:
|
||||||
return Long.toString (lvalue);
|
return Long.toString (lvalue);
|
||||||
|
|
|
@ -287,7 +287,7 @@ public final class Property implements IProperty, Serializable, Cloneable {
|
||||||
case BOOLEAN:
|
case BOOLEAN:
|
||||||
return bvalue ? "true" : "false";
|
return bvalue ? "true" : "false";
|
||||||
case DATE:
|
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));
|
return format.format (new Date (lvalue));
|
||||||
case INTEGER:
|
case INTEGER:
|
||||||
return Long.toString (lvalue);
|
return Long.toString (lvalue);
|
||||||
|
@ -354,68 +354,3 @@ public final class Property implements IProperty, Serializable, Cloneable {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue