I am not sure if this is a configuration problem for me or even if it's a bug in jscalendar.

I'm running drupal 5.0b2, and head versions of cck, and date, and the jscalendar from here: http://drupal.org/node/81691

The jscalendar date picker always shows the time, even when the date field doesn't have a time, only a date.

Is this working for other folks?

cheers,
-o

Comments

karens’s picture

Project: Date » Javascript Tools
Version: 7.x-1.x-dev » master
Component: User interface » Jscalendar

I think this is some kind of a bug in the HEAD version of jscalendar (which has not yet been committed). I tried that patch and It seems to be ignoring the format and time settings that the date module has provided and is using the default values instead.

I'm going to move this issue over to the jstools issue queue so someone can evaluate it.

alexis’s picture

Any update on this? I'm also trying to get rid of the time but using '#jscalendar_showsTime' => 'false' in my form doesn't work.

Thanks!

nedjo’s picture

See some further details on this issue here: http://drupal.org/node/81691.

I've made another blind attempt at a fix (changing underscore in the element id to a dash, on the assumption the problem may come from form_clean_id() conversion). I'm hampered by not having any examples to work from. If this latest attempted fix doesn't work, I'd appreciate a link to a site running some code so I can see the HTML generated.

oliver soell’s picture

this now works for me. Thanks!
(using date module + jscalendar display)
cheers,
-o

nedjo’s picture

Status: Active » Fixed

Thanks, I'll mark this fixed then.

alexis’s picture

Oliver, how did you get it working?

I grabbed jscalendar from Drupal's CVS and applied to my Drupal 5 installation and still '#jscalendar_showsTime' => 'false' is not working.

I'm seeing the time in the calendar and it's appearing in my text field.

My jscalendar.js version:
// $Id: jscalendar.js,v 1.9 2007/02/02 03:24:25 nedjo Exp $

Thanks!

alexis’s picture

Excuse me, my mistake. I had checked out just jscalendar, now I checked out the whole jstools directory and everything works as expected.

Thanks guys!

Anonymous’s picture

Status: Fixed » Closed (fixed)