Closed (fixed)
Project:
Date
Version:
7.x-2.x-dev
Component:
User interface
Priority:
Major
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
18 Aug 2011 at 09:51 UTC
Updated:
4 Jan 2014 at 01:11 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
vasikesubscribe.
i think this could be "caused" also by a this feature #1258300: Add option to set default time values and hide time entry
Comment #2
bak commentedSubscribe.
The option to disable "All Day" is highly recommended.
Comment #3
Anonymous (not verified) commentedSubscribe
This is causing real problems for me. I don't want my users to be able to select "all day".
Comment #4
rickvug commentedAgreed. The "all day" tickbox makes sense as a widget setting. To give a real world usage example, I presently have a project with Events, where "all day" is really useful and a separate publishing date field, where "all day" doesn't make any sense.
Comment #5
adamgerthel commented+1
We use date module on a site where users select their child's date and time of birth. "All day" is not really applicable for when the baby arrives (although I suppose it could be possible in a sense :P )
Comment #6
marcoscanosubscribe
Comment #7
magnusk commentedI also find this checkbox inadequate in certain contexts.
Sometimes I really want the user to pick a time. So I don't want that checkbox at all.
Sometimes I would like to allow for an empty time field, which does not necessarily mean it's an "all day" value, it could just be that the time is not yet known, or not important. So even if I'd be fine with the checkbox functionality, I'd like to display a different legend for it (e.g. "time tbd"). And the checkbox should then be inside the fieldset rather than above it.
Comment #8
marktheshark commentedThis thread is about 7.x-2.x-dev, but I'd like to ask about 6.x.
How do you make the "All day" check-box appear? I have exact opposite problem: haven't been able to create a single all-day event ever... It always forces me to enter hours and minutes as well.
Thank you
Comment #9
13rac1 commentedSubscribe. I don't want this feature on my date fields. It needs to be optional.
@marktheshark: To make the "All day" check box appear, you must install Drupal 7. It is a Drupal 7 feature only, unless backported.
Comment #10
13rac1 commentedThat was simple enough. Attached is a patch making the All Day checkbox optional. Defaults to disabled, so the All Day feature won't affect existing page designs.
FYI: My text editor removed a lot of end-of-line whitespace also.
Comment #11
spcalpo commentedThe patch didn't work for me, unfortunately.
I have Date version 7.x-2.0-alpha4.
Comment #12
spcalpo commentedNever mind. Noticed this was for the dev version so I installed that and the patch worked. Thanks eosrei.
Update: I can't actually find the admin option for enabling/disabling the "all day" checkbox :( So now it's always disabled and that's not what I wanted either.
Comment #13
13rac1 commented@Sally, you may need to clear the Drupal cache to see the new settings. Last I installed this patch it worked correctly and is on a live site right now.
Comment #14
spcalpo commentedI tried refreshing cache but still don't see the option, unfortunately. I've been trying to view it by creating a new date field for a custom content type, then editing the field (both the new field type, and the instance for that content type). Neither of those pages show the option to toggle 'all day'. I'm not sure if I am just looking in the wrong place, though.
I'm thankful for such a useful patch, I just wish I could use it!
Comment #15
spcalpo commented(Double post, sorry)
Comment #16
vulfox commented+1
Lots of "All day" issues here...
Comment #17
Thrixke commentedI just downloaded the 2.x dev version (release date: 15th of nov 2011) of the date module in order to apply your patch. Unfortunately, my IDE said the patch could only be applied partially. I tried anyway, visited my content type to check wether I do have the option to enable/disable the 'all day' checkbox. The option is there. But, when saving my content type, I get this error:
Notice: Undefined index: display_all_day in _date_field_widget_settings_form() (line 265 of date/date_admin.inc)
The checkbox is still there when I try to create new content. Is the patch not working on the latest dev 2.x?
Comment #18
karens commentedResetting issue title
Comment #19
Thrixke commentedSorry, forget about it.
I applied the patch manually. Now it works perfectly!
Thank you very much.
Comment #20
13rac1 commentedResetting other settings. If it works perfectly, please change the status to RTBC.
Comment #21
arlinsandbulte commentedPlease do not mix code changes with cosmetic changes (whitespace changes).
It makes a simple patch MUCH more difficult to review and troubleshoot (both now and if it needs to be revisited in the future).
Attached is a patch without the whitespace corrections against the latest -dev.
This looks good and I tested it successfully...
Comment #22
arlinsandbulte commentedCommitted #21:
http://drupalcode.org/project/date.git/commit/841c628
Thanks
Comment #23
arlinsandbulte commentedAlso note: users can STILL create 'all day' events even though the checkbox is gone:
For a date field with no To Date (To Date set to Never), it is labeled as "All Day" when the time equals 12:00AM.
For a date field with a To Date ('To Date' is set to Optional or Required), it is labeled as "All Day" ONLY when both the From Date & To Date times are on the same day AND both set to 12:00AM.
But that is another issue here: #874322: To Date & All Day Date Handling
Comment #24
13rac1 commentedThanks for committing this much needed change. I wasn't aware how many whitespace error corrections were in the patch, until you mentioned it.
Comment #25
karens commentedI made a follow up tweak to this -- I moved it down by the increment setting so the form sets up year and then time options, and I added a step to not show the setting on dates without time.