I created a datetime field with granularity of minute (tried second and it's still the same bug). I have to To Date set to required, and I have no timezone conversion.

When I set the value of From Date to, for example, 2009-10-05 22:00, and the To Date to 2009-10-06 00:00 (a 2 hours event) and save the node, the To Date value is changed to 2009-10-06 22:00 (same time as the From Date).
This happens when I set the To Date to any value between 00:00 and 01:00 (not including 01:00).

When To Date value is 2009-10-06 01:00 or later, everything's cool.

Comments

arlinsandbulte’s picture

I can confirm this bug with a clean install of:
Drupal core 6.19
Administration menu 6.x-1.6
Content Construction Kit (CCK) 6.x-2.8
jQuery UI 6.x-1.3
Poormanscron 6.x-2.2
Views 6.x-2.11
Date - CVS checkout (don't remember when I checked it out, but it has been a while)

Those are a little old and there are updates available.
When I get a chance, I will re-confirm with up-to date code.

karens’s picture

Status: Active » Postponed (maintainer needs more info)

I can't reproduce this using the latest code. @arlinsandbulte, can you double-check with latest code? If the bug is still there, see if you can nail down the steps to reproduce.

arlinsandbulte’s picture

Will do. Might be a couple days though.... too much holiday eating & gorging, and then I need to recover ;-).
ping me if I delay.

karens’s picture

No worries, I am getting ready to jump on a plane to go visit relatives, so I won't get much done in the next week.

arlinsandbulte’s picture

OK, I lied. This was bugging me, so I got up early to work on it.

Still confirmed with latest code:
Drupal core 6.20
Administration menu 6.x-1.6
Content Construction Kit (CCK) 6.x-2.8
Date 6.x-2.x-dev (2010-Dec-24)
jQuery UI 6.x-1.4 (with 1.6 library)
Poormanscron 6.x-2.2
Views 6.x-2.12

Aquia Drupal stack:
PHP 5.2.14
MySQL database 5.1.50
Web server Apache/2.2.16 (Win32) PHP/5.2.14

Enable the following modules:
Administration menu
Content (only this part of cck, nothing else needed)
Date
Date API
Date Timezone
Poormanscron
jQuery UI
Views
Views UI

Set Default time zone to "America/Chicago"

Add new field to the Story content type:
Label: date
Field name: date
Type of data to store: Date
Widget: Select List

Change Global settings:
Check "Required"
Make To Date "Required"
Change Time zone handling to "No timezone conversion"

Create new story node:
Enter From Date: Year: 2009, Month: Oct, Day: 5, Hour: 22, Minute: 00
Enter To Date: Year: 2009, Month: Oct, Day: 6, Hour: 0, Minute: 00

Save node:
The To Date is now (incorrectly) displayed with hour 22, minute 00 (year, month, day is correct).
Editing the node also shows the wrong time in the form.

karens’s picture

Status: Postponed (maintainer needs more info) » Fixed

OK, found the problem. It was treating an hour of zero as an unselected value and trying to reset it to the 'from' hour. Should be fixed now.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.