Issue 8801 - Dates read from .dbf file off by 3 days
Summary: Dates read from .dbf file off by 3 days
Status: CLOSED FIXED
Alias: None
Product: Base
Classification: Application
Component: code (show other issues)
Version: OOo 1.0.1
Hardware: PC Linux, all
: P3 Trivial (vote)
Target Milestone: ---
Assignee: Oliver Specht
QA Contact: issues@dba
URL:
Keywords: oooqa
Depends on:
Blocks:
 
Reported: 2002-10-29 11:18 UTC by pdelisle
Modified: 2006-05-31 14:29 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description pdelisle 2002-10-29 11:18:46 UTC
I have a simple database in .dbf/dBASE format for my accounts and invoicing
system. The invoice is printed by OOo 1.0.1.

The invoice date in OOo is displayed/printed 3 days _AFTER_ the date in the .dbf
file, i.e. 29 June 2002 prints as 1 July 2002.

The data source is sdbc:dbase.

I'm in the UK and use English (UK) as the locale, although I doubt that this
affects the problem.

Philip
Comment 1 Frank Schönheit 2002-10-29 13:46:54 UTC
Philip, thanks for supporting OOo and for filing this.

Do I understand you correctly that you use form letter fields which
are bound to a date field in the database?

Additionally, if you did not mistype the dates, the difference is 2
days, not three days, isn't it?

Thanks, Frank
Comment 2 pdelisle 2002-10-29 15:45:14 UTC
Hi Frank,

Sorry, I should have been more complete in my report.

Yes, I created the invoice template using Writer and embedded form
fields from the database in this document.

Re 2 vs 3 day offset - depends if you count the date in the database
as day 1 or day 0. Programmatically I agree with you that it should
probably be day 0 (i.e. 2 days off).

Also the .dbf is in DOS/ISO850 format.

HTH

Philip
Comment 3 Frank Schönheit 2002-10-29 15:59:35 UTC
Philip, thanks for the feedback.

for the 2 days: between "29 June 2002" and "1 July 2002" are two days,
no matter what the days of the respective date system is, aren't they?

Assigning this to os@openoffice.org - Oliver, I think you fixed this
recently in the form letter implementations ....

Frank
Comment 4 pdelisle 2002-10-29 18:40:22 UTC
Frank

<quote>for the 2 days: between "29 June 2002" and "1 July 2002" are
two days, no matter what the days of the respective date system is,
aren't they?</quote>

Not if you are my accountant <vbg>

Philip
Comment 5 Oliver Specht 2002-10-30 06:54:46 UTC
fixed in srx644h
Comment 6 Oliver Specht 2003-06-19 11:02:27 UTC
Closed.
Comment 7 hans_werner67 2004-02-02 12:46:54 UTC
change subcomponent to 'none'