Pour toutes questions sur nos formations Drupal, n'hésitez pas à nous contacter.
#D7CX: I pledge to have Date released on the day that Drupal 7 is released. Views integration, including calendar module, will be ready released when Views releases.
This package contains both a flexible date/time field type Date field and a Date API that other modules can use.
The D5 and D6 versions of the Date field require the Content Construction Kit (CCK) module. The D7 version works with the core Field functionality.
NOTE: The included copy of the jQuery UI datepicker in Date Popups v 6.2 has been removed. It is now necessary to install the jQuery UI module (http://drupal.org/project/jquery_ui) for the D6 version of Date Popups datepicker to work!
NOTE: I basically have no more time to support problems related to outdated versions of PHP. If you want dates to work correctly you need to use PHP 5.2 or higher. Expect this to become an absolute requirement in the near future. It is already a requirement for the D7 version.
New! View a video on Date and Calendar by Karen Stevenson from the Do It With Drupal Free Video archive.
The Date Popup calendar includes some css for IE6 that breaks css validation. Since IE 6 is now superceded by IE 7 and IE 8, the special css for IE 6 has been removed from the regular css used by the Date Popup. If you find you need that css after all, you can add it back in your theme. Go to Administration >> Configuration >> Date Popup on your site for more information.
Be sure to read Debugging Information before reporting a problem. Going through those steps may resolve your problems and will help provide enough information to tell if this is a bug.
If you install the Advanced help module you'll have access to a growing collection of help pages documenting how everything works .
See documentation at Date/Calendar Documentation for more information.
I'm incorporating new functionality created by David Goode in a Google Summer of Code project. He added a new DateObject that handles much of the date manipulation as an extension of the PHP Date object. The D7 version now requires PHP 5.2+, so all the old crufty workarounds for PHP 4 and PHP 5.1 are gone (and good riddance!). Since we don't need to support the layer of PHP 4 workarounds, we can take full advantage of PHP 5.2 date objects.
The new code works similarly to the older code but there are a few changes, for example:
Old code: $date = date_make_date($value, date_default_timezone(), DATE_ISO);
New code: $date = new DateObject($value, date_default_timezone(), DATE_ISO_FORMAT);
Old code: date_timezone_set($date, timezone_open($this->local_timezone));
New code: $date->setTimezone(timezone_open($this->local_timezone));
Old code: $formatted_date = date_format($date, 'i');
New code: $formatted_date = $date->format('i');