diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2015-09-01 07:27:05 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2015-09-18 10:09:46 +0200 |
commit | d01b01a752d02161ba0bff9947e2d7da1dcae39d (patch) | |
tree | 200396ff0b07dd47f3da4a9137615d47705b8653 /wizards | |
parent | b12b694da1581c152c096f442f6ef7993fb5abab (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>
(cherry picked from commit ed33646cdecac866ab480bf5770726b4a5bfa6c9)
Reviewed-on: https://gerrit.libreoffice.org/18224
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.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; |