diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2015-09-01 07:27:05 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-09-01 07:55:57 +0000 |
commit | ed33646cdecac866ab480bf5770726b4a5bfa6c9 (patch) | |
tree | ad6a585f28a63b12edbcc9fbc63bc474937ec8a3 /wizards | |
parent | e00a3a684e22f45f36b4002ce726cb2975cb36ae (diff) |
tdf#91022: Incorrect Dates in Report created with legacy report wizard
Regression from http://cgit.freedesktop.org/libreoffice/core/commit/?id=5d8ecad569fd7a254902da154ed8057ec61f3a83
Thank you Matthew Francis for having found the root cause!
Change-Id: I4128368a5f5df6a9fc5f7668fb1f8f330b5795b9
Reviewed-on: https://gerrit.libreoffice.org/18210
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'wizards')
-rw-r--r-- | wizards/com/sun/star/wizards/db/RecordParser.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/wizards/com/sun/star/wizards/db/RecordParser.java b/wizards/com/sun/star/wizards/db/RecordParser.java index b71ae9997262..21be84a664a1 100644 --- a/wizards/com/sun/star/wizards/db/RecordParser.java +++ b/wizards/com/sun/star/wizards/db/RecordParser.java @@ -131,12 +131,14 @@ public class RecordParser extends QueryMetaData case DataType.FLOAT: // == 6; case DataType.REAL: // == 7; case DataType.DOUBLE: // == 8; - case DataType.DATE: // == 91; case DataType.TIME: // == 92; - case DataType.TIMESTAMP: // == 93; oAny = getColumnDoubleValue(ColIndex, false); break; + case DataType.DATE: // == 91; + case DataType.TIMESTAMP: // == 93; + oAny = getColumnDoubleValue(ColIndex, true); + break; case DataType.CHAR: // == 1; case DataType.VARCHAR: // == 12; case DataType.LONGVARCHAR: // == -1; |