Issue 24082 - Problem with date 25/4/3 (where?) 2004-03-28 (EU) and probably soon (2004-04-03) with 2004-04-04 (US)
Summary: Problem with date 25/4/3 (where?) 2004-03-28 (EU) and probably soon (2004-04-...
Status: CLOSED FIXED
Alias: None
Product: Internationalization
Classification: Code
Component: code (show other issues)
Version: OOo 1.1
Hardware: All All
: P3 Trivial with 1 vote (vote)
Target Milestone: ---
Assignee: peter.junge
QA Contact: issues@l10n
URL:
Keywords:
: 27210 27475 27512 27572 27717 28033 28075 28199 28204 28344 28451 28598 28655 29374 29861 29962 30060 30387 30803 (view as issue list)
Depends on:
Blocks:
 
Reported: 2004-01-04 14:54 UTC by pezz
Modified: 2013-08-07 15:00 UTC (History)
2 users (show)

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


Attachments
screenshot that describes 25.04.03 appearance bug (19.92 KB, image/jpeg)
2004-01-14 08:30 UTC, pezz
no flags Details
StarBASIC script to verify behavior (3.79 KB, text/plain)
2004-04-05 13:24 UTC, ooo
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description pezz 2004-01-04 14:54:59 UTC
Date 25.04.03 acts differently than others in spreadsheet: it doesn't follow 
formatting rules and it is generated wrong when populating dates by dragging 
cell's corner.
How to produce:

First problem:
a) Open new spreadsheet and format a cell to have format DD.MM.YY
b) Enter 23/4/3, 24/4/3 and 25/4/3 into the cell. You can also enter 23.4.3, 
format doesn't matter. 23.04.03 and 24.04.03 are formatted correctly, but 25.04.
03 is not.

Second problem
a) Format a cell to have format DD.MM.YY and enter date 01.04.03
b) Drag cell's bottom right corner down to populate dates increasingly into 
other cells of column. Dates are shown as 22.04.03, 23.04.03, 24.04.03, 24.04.
03, 26.04.03, 27.04.03. So 25.04.03 is also shown as 24.04.03. When you change 
cells format to number then all number are correct.


Linux versions of 1.1.0 and 1.1.1a work correctly.

Linux version of OOo acts correctly.
Comment 1 frank 2004-01-09 14:58:36 UTC
Hi,

I'm sorry to tell you, but I can't reproduce the problem your facing. Neither
with OOo 1.1 nor with 1.1.1a.

As in the mean time noone else could reproduce your problem, I close it as
worksforme. Please try it again and reopen this Issue if you get it reproducible
even if you close the Office and reboot your machine.

Thanks for your co-operation.

Frank
Comment 2 frank 2004-01-09 14:58:58 UTC
closed wfm
Comment 3 pezz 2004-01-14 08:28:59 UTC
Hi, 
 
I can still confirm that bug appears as reported. Installed 1.1.1a on new 
Windows 2000 and it's there. Also several users in our local list have 
confirmed it. I'll attach the screenshot. 
 
Comment 4 pezz 2004-01-14 08:30:59 UTC
Created attachment 12473 [details]
screenshot that describes 25.04.03 appearance bug
Comment 5 frank 2004-01-14 13:31:14 UTC
Hi,

a Screenshot will not help in this case. I believe that you're facing the
problem, but it's not reproducible on other's systems. Do you have set a
userdefined template as default template for Calc ? Have a look at File -
Templates - Organize. Also what are the Locale settings for your w2k ? Is OOo1.1
an english version or has it a different language ? From there have you
downloaded this version or have you build it by yourself ?

Please also attach a document that shows your problem.

Frank
Comment 6 pezz 2004-02-02 18:16:52 UTC
I've played with it, but I've been unable NOT to produce this bug. 
It appears on Windows, it doesn't appear on Linux. I re-downloaded official 
OOo-1.1.0 for Windows, installed it on Windows 
 
Simpler steps to reproduce: 
* Open new spreadsheet 
* Enter date 22.04.03 (April 22 '03) into any cell so that it is correctly 
recognized as date, drag cell's lower right corner 10 cells down, so that 
dates are populated increasingly. Do you also see 23.04.03, 24.04.03, 
24.04.03, 26.04.03? 
 
If I enter 25.04.03 into any cell, it is always treated as non-date, although 
any other dates 1-2 days smaller or bigger written in the same format are 
recognized correctly. 
 
I've changed OOo's locale and document language to different values, also 
Windows' locale, but no change. I've tried on English Win2000 and Win2003 
Server. 
 
 
Comment 7 pezz 2004-02-02 18:30:35 UTC
so basically it looks to me like for some reason date-recognition ignores this 
particular date (25.04.03) and date formatting formats it wrong. 
Comment 8 frank 2004-02-03 08:21:11 UTC
Hi,

again, I can't reproduce your problem.

Please attach a file that shows your problem.

Frank
Comment 9 pezz 2004-02-03 11:46:30 UTC
Hi, 
 
Could you please describe your environment too, on which problem doesn't 
appear? 
 
 
Gnumeric had similar problem and Jody Goldberg from Gnumericu team wrote about 
their bug: 
 
....so it's compiler or compiler flag specific.  The code for elapsed 
hours looks like its already doing epsilon rounding. 
 
...Replication required an optimized build. We needed to add epsilon before  
scaling. Fixed. 
 
Could you check this please: 
http://bugzilla.gnome.org/show_bug.cgi?id=125230 
 
 
Comment 10 frank 2004-02-03 12:21:58 UTC
Environment used:

W2k English German locales
WinXP Prof English German locales
Solaris9 UltraSparc English English locales
Turbo Linux 8 English English locales
Suse Linux 8.1 English English locales
Sun JDS English English locales

On all machines the official build from OOo Versions 1.0.3.1, 1.1, 1.1.1a

So you can see, this seems to be a problem with your Environment or build.
Compilerflags maybe the problem, but only if you build the Inst. set by yourself.

So please attach a document that shows the problem. Maybe we can find out whats
going wrong if we analyze it.

Frank
Comment 11 ooo 2004-02-03 13:35:14 UTC
Hi Pezz,

This seems to be a dupe of issue 17222, fixed on branch pp1numfor that was
integrated on 2004-01-05, please verify in the next release of OOo1.1.1

In the meantime you might test if the behavior changes if you select another
timezone / regional settings or so under Windows.

Eike
Comment 12 pezz 2004-02-16 16:32:22 UTC
OOo-1.1.1b really fixed the problem, so I close this issue. 
Comment 13 frank 2004-02-17 08:52:08 UTC
closed fixed on users request
Comment 14 pezz 2004-03-29 11:04:23 UTC
I want to reopen this bug because it appears again in 1.1.1rc3, tested with  
original and localized builds on win2k and suse 9.0. Now it appears with date  
28.03.2004.  
If i enter 03/28 calc displays this as 1. Mar 2028, if i enter 03/28/2004 calc  
doesn't recognize this as a date.  
With 03/27 and 03/29 its all okay.  
I have tested it with us-english and estonian locale and using different basis  
dates as spreadsheet options, nothing. Bug is still here.  
Comment 15 frank 2004-03-29 11:40:09 UTC
reopened
Comment 16 frank 2004-03-29 11:40:52 UTC
Hi Eike,

could you have a look at this please?

Frank
Comment 17 avagula 2004-03-29 14:10:14 UTC
I made a screenshot with explanations and attached here, I think this is 
better than attaching the calc file, because in different systems this file 
may behave differently. 
Comment 18 avagula 2004-03-29 14:13:14 UTC
oops, forgot the file 
http://www.avkb.ee/dates.png 
Comment 19 niklas.nebel 2004-03-29 18:36:30 UTC
This wasn't broken with 1.1.1rc3, it started happening *today* (the day after
the daylight saving switchover), with the changes for issue 17222.
Comment 20 ooo 2004-03-30 10:09:35 UTC
Accepted issue, investigating.
Comment 21 frank 2004-03-31 09:46:56 UTC
*** Issue 27210 has been marked as a duplicate of this issue. ***
Comment 22 ooo 2004-04-03 21:42:40 UTC
Identified  the cause, happens when daylight saving time (DST) (with onsetRule
time 02:00+1h for example) is in effect and the very onsetRule date 00:00-00:59
is entered via i18npool->ICU without resubmitting the time value after DST
glitch correction. Should occur independent of locale as long as the DST
condition is met. Adjusting summary accordingly.

I regard this important enough to raise the release target to OOo1.1.2, fix is
prepared.

@Pezz: I still wonder how you encountered the problem with 2003-04-25 in January
of 2004, which locale or timezone settings did your machine use? If the behavior
of that date and the ones from issue 17222 was related (it seems so as you
reported it to be fixed) it would had been something that resulted in switching
DST on or off on that date, strangely enough a Friday, and your DST in January
being the opposite.

Eike
Comment 23 ooo 2004-04-05 13:10:27 UTC
Fixed on branch cws_srx645_dr16:
i18npool/source/calendar/calendar_gregorian.cxx -r1.21.26.1.10.1
Comment 24 ooo 2004-04-05 13:24:30 UTC
Created attachment 14337 [details]
StarBASIC script to verify behavior
Comment 25 ooo 2004-04-06 11:50:38 UTC
Reassign to QA.

Peter, you may also use the BASIC script attached to this issue to verify the
behavior, just be sure to start the application in an environment where a de_DE
locale and DST is effective. A complete test would also involve DST _not_ being
effective (setting the machine's date to January or the like) and in the script
use values that do similar transition from non-DST to DST.
Comment 26 pavel 2004-04-06 22:03:41 UTC
This issues was also reported by Czech users.
Comment 27 frank 2004-04-07 09:51:18 UTC
*** Issue 27512 has been marked as a duplicate of this issue. ***
Comment 28 peter.junge 2004-04-07 11:31:24 UTC
OK in CWS dr16. Script shows expected results. The cross-check on a locale not
supporting DST fails.
->fixed/verified
Comment 29 peter.junge 2004-04-07 11:31:58 UTC
.
Comment 30 pavel 2004-04-07 19:52:22 UTC
*** Issue 27572 has been marked as a duplicate of this issue. ***
Comment 31 frank 2004-04-13 09:38:45 UTC
*** Issue 27717 has been marked as a duplicate of this issue. ***
Comment 32 frank 2004-04-13 11:59:25 UTC
*** Issue 27475 has been marked as a duplicate of this issue. ***
Comment 33 pavel 2004-04-20 18:43:36 UTC
*** Issue 28033 has been marked as a duplicate of this issue. ***
Comment 34 frank 2004-04-22 13:38:21 UTC
*** Issue 28204 has been marked as a duplicate of this issue. ***
Comment 35 frank 2004-04-22 13:39:28 UTC
*** Issue 28199 has been marked as a duplicate of this issue. ***
Comment 36 pavel 2004-04-25 21:17:21 UTC
*** Issue 28344 has been marked as a duplicate of this issue. ***
Comment 37 peter.junge 2004-04-26 17:58:35 UTC
Fixed in master srx645m40
Comment 38 frank 2004-04-28 09:17:30 UTC
*** Issue 28451 has been marked as a duplicate of this issue. ***
Comment 39 frank 2004-04-30 10:43:03 UTC
*** Issue 28075 has been marked as a duplicate of this issue. ***
Comment 40 pavel 2004-05-02 10:37:19 UTC
*** Issue 28598 has been marked as a duplicate of this issue. ***
Comment 41 frank 2004-05-03 15:48:27 UTC
*** Issue 28655 has been marked as a duplicate of this issue. ***
Comment 42 geofffarrell 2004-05-04 11:00:33 UTC
You seem to be confident that issue 28655 is a duplicate of this one, but I'm
not so sure, as it has nothing to do with daylight saving.  Issue 28655 was
generated in a time zone where daylight saving is not active.  I trust you're
going to load the attachment from issue 28655 into your 1.1.2 fix and confirm
that it provides the fix (?).
Comment 43 peter.junge 2004-05-04 14:16:27 UTC
@geofffarell: Yes, I can confrim the duplicate. It's no problem of the timezone
but of the locales selected. You can cross check it by running the macro Eike
attached to this issue.

Peter
Comment 44 lohmaier 2004-05-23 17:50:56 UTC
*** Issue 29374 has been marked as a duplicate of this issue. ***
Comment 45 frank 2004-06-04 10:11:21 UTC
*** Issue 29861 has been marked as a duplicate of this issue. ***
Comment 46 frank 2004-06-08 11:54:46 UTC
*** Issue 29962 has been marked as a duplicate of this issue. ***
Comment 47 frank 2004-06-11 10:44:02 UTC
*** Issue 30060 has been marked as a duplicate of this issue. ***
Comment 48 frank 2004-06-17 14:52:07 UTC
*** Issue 30387 has been marked as a duplicate of this issue. ***
Comment 49 frank 2004-06-28 10:17:03 UTC
*** Issue 30803 has been marked as a duplicate of this issue. ***