You are here

CHANGELOG.txt in Date 5.2

Date Module 5.2
=================

Version 5.2-dev
=================


Version 5.2.8
===============
- #418174 Timestamp format should not be run through date_limit_format().
- #473308 Add handling for year-only date stored in timestamp field.
- Fix date_limit_format() to be sure the 'T' is stripped out of ISO dates with only date or only time.
- #369020 Switch '+1 Sunday' to 'First Sunday' to over PHP5 bug.
- #315443 Make sure 'within' labels don't break when used in text fields.
- #381370 Remove escaping for colon and double quote per ical spec.
- #456460 Break out simple themes for date_display_single and date_display_double for easier control by themers of separator and other html.
- #384258 Fix broken handling of 24 hour time in Date Popup.
- #401152 Fix broken handling of long month name in input format.

Version 5.2.7
===============
- #452420 Revert change of hyphen to dash in date display, dash is handled badly by token and elsewhere.
- #347080 Using 'first' and 'last' is more reliable than '+1 week' in strtotime().
- #369020 Fix bug when finding first or last Mon/Tue/Wed/Thu/Fri/Sat/Sun of month.
- #427830 Postgres can't handle \T.
- #417032 Fix typo that caused date fields using text widget not to have values saved.
- #418206 All date elements should be in datetime format when processing elements.
- #375864 Clean up date_limit_format() to handle more odd formats.
- #338253 Fixes to translation of timezone names.
- #409476 Make sure empty UNTIL date is not parsed into RRULE.

Version 5.2.6
===============

- #314959 Make sure non-requested date fields are not displayed.
- #317105 Update Isreal DST rules.
- #342423 Add 'date_popup' class to Date popup for jQuery targetting.
- #368305 Date browser week view was cutting off one second too late.
- #380754 Grouped date handler needs 'AND' when it has a $where clause.
- #310438 Clear up confusion when more than one date filter is used in the same view.
- #408770 Abort date_combo processing when user has no #access.
- #388728 Change dash to en dash in date range theme.
- #414290 Update timezone form_alter to account for difference between Event version 1 and 2.
- #400992 Add time and datetime tokens.
- #408176 Fix token handling of empty values.
- #354989 Make sure year-only date does not regress to YYYY-00-00 00:00:00, which will end up as previous year.
- #398258 Fix problems handling blank text widget values and general form processing cleanup.
- #397420 Fix miscalculation errors in date_difference.
- #375864 Make sure date_limit_format() doesn't keep formats that are only escaped strings.
- Improve interpretation of argument date ranges.
- Improve handling of translation for Date repeat rules.
- #375551 The 'All day' formatting should not be applied to format_interval formats.
- Date PHP4: fix inconsistency in offset computation for first two hours of the day dst changes.
- Date PHP4: eliminate some needless cycles to improve performance.
- iCal TRIGGER can either be a date or a duration.
- Fix to iCal: alter the end date of all day events to match the to date.
  The ical practice of setting the End date as the next day won't work for our interal use of this value.
- #347090 Fix southern hemisphere timezone adjustment for PHP4.
- Fix bug that caused date_select to end up as current date.
- #313369 Repeating date with exceptions created error when exceptions data is appended.
- Fix bad PHP4 regex that caused endless looping in calendar and broken logic elsewhere.
- Make the PHP4 code forgiving enough to accept '+ 1 month' instead of '+1 month'.
- #292942 Only load timezone js file in timezone forms.
- Fix broken handling of some partial (year or month and year) dates and pave the way for fuzzy granularity by adjusting date_is_valid() and date_make_date() to better handle partial dates.
- #347080 Fix PHP4 southern timezone computation and New Zealand region.
- #353327 Check for Event 2 timezone table before trying to use it.
- Fix logic for collapsing the Date repeat fieldset.
- Date Popup should handle empty time better.
- #310633 Rework 'all day' logic to correctly handle increments.
- #346804 Don't use D6 function in D5 version!
- #324290 Don't validate when $items is empty.
- #313704 Make sure date db timezone does not get removed before token handling.
- #345862 Fix missing close comment tag in datepicker css.
- Get rid of DURATION time part details in iCal array, we only need the DATA and DURATION.
- #282521 Do more work on LOCATION to split out UID and handle odd upcoming.org location identifiers.
- Add more error trapping to ical parser.
- Add handling to ical parser for odd upcoming.org location format.
- #341705 Fix broken iCal DURATION parsing.
- Add some protection against empty or missing info in ical parser.
- #343190 Add validity testing to date_api_ical_build_rrule().
- #307166 Make sure timestamps with missing granularity parts in select widgets get defaulted to empty values and saved correctly.


Version 5.2.5
===============

- Fix background colors in Date Popup.
- #273730 Don't use REGEX_LOOSE on YEAR, MONTH, or DAY filters.
- #314675 Don't try to strip labels out of select lists if the value is not an array.
- Make sure empty time in Date Popup filter will still work.
- Fix use of D6 table name in install file.
- Add ability to analyze a period to period argument, like P1M--P1Y.
- Add date_increment_round() to date_content_generate to make sure generated dates match increment settings.
- #301279 Remove README.txt for Date Popup, it's out of date and I'm moving documentation into the d.o handbook and Advanced Help.
- #337075 Change background-color:none to background-color:transparent.
- #324756 Bypass validation for empty, non-required dates.
- Fix broken Date API test broken by change in API.
- #340394 Fix four-digit year format for PostgreSQL.
- Fix bug in new date_field_get_sql_handler() helper function to pick up the right timezones for the handler.
- Date picker can't handle some year ranges that work in Date API, so adjust it as needed.
- #338237 Replace 'local_offset_field' with 'offset_field' in date handler.
- Make sure node edit form uses the right timezone for the database and field type.
- Fix logic error in date_convert when using timestamp with timezone other than UTC.
- #340356 Missed removing date_timezone_convert() in one place.
- #336255 Fix a few remaining places where timezone=none was not being handled correctly, and add update to clean up incorrect values stored in database.
- Eliminate date_timezone_convert() which wasn't working correctly to adjust dates without timezones and get rid of hard-coded 'UTC' for database values in favor of consistently using date_get_timezone_db().
- Date sql handler wasn't properly setting db timezone to UTC for mysql databases.
- #336255 Add new helper functions to make work of other modules, like Signup, easier. One helper to create a date handler for a field and another to do make date math easier.

Version 5.2.4
===============

- #309155 Get rid of all translation during date_repeat calculations, it was causing timeouts with locale module.
- #336109 Add handling for ordinals to custom date formatting.
- #265076, #324794 Revert attempt to use strtotime to 'guess' text input since it too often ends up silently turning into 'now'.
- #303951 Relax requirements for text date input to allow single digit months and days.
- #309617 Make DATE_REGEX_LOOSE a bit looser so the @ argument will work right for single digit months and days.
- #313933 Don't query for date_browser views when there are no arguments.
- #314012 Move date_views_filter_value() to date_api.module so it's available if Date module is disabled.
- Adapt processing to make sure only selected dates display in nodes, views, and calendars.
- Add Views field handler for date that can be smarter about grouping date values in views.
- Do a little more work on clarifying the repeat descriptions.
- Fix PHP4 timezone problem that didn't save timezone changes correctly in rare cases when refreshing zones using devel.
- Add 'UNTIL' to the RRULE creation function so it can be used by the API and date_content_generate.
- Update date_content_generate to find more matches in a more limited period.
- #322845 Make sure delta is passed to date theme so repeating dates display correctly in Views.
- Make sure repeating date UNTIL date is properly adjusted for timezone.
- Add repeating dates to hook_content_generate().
- #296529 Update repeating date computations to properly adjust the UNTIL date to the right time and timezone so the end date gets picked up correctly.
- Move repeating date computations into their own function so they can be used by hook_content_generate.
- #326732 Fix local task to create Date repeats tab, check for valid node and add !may_cache.
- #319452 Fix bug in PHP4 calculation of +/-1 week when using Monday as the first day of the week.
- #319452 Make sure repeating date calculations like 'the 5th Sunday' don't prematurely jump to the following period.
- Fix bug in PHP4 calculation of date_date_set() that was getting the day wrong.
- #329102 Fix mistake in README.txt.
- #317057 Make sure existing optional date with empty value doesn't get reset to current date.
- Add more checks in PHP4 functions to return usable values when we don't have complete timezone information in the PHP4 wrapper.
- Add helper function to convert input values based on field type.
- Fix timezone caching -- it was resetting when it didn't need to, consuming resources.
- Found a better way to generate random timezones using mt_rand() instead of rand() to avoid getting lots of duplicates.
- Found some timezones that can't be used in PHP4 because we don't have offset information, so remove them from timezone lists.
- Fix error in PHP4 dst switch date for North America.
- #327506 Detect and trap bad timezones in ical import so they don't create errors.
- Fix the way 'rel=nofollow' was added to the Date browser.
- #240156 Workaround conflict between Event and Date by using #process on timezone forms to override Event module handling.
- #174580 Add rel=nofollow to back/next links.
- #322446 Avoid extra space in date theme when there is no timezone.
- Don't try to find repeating fields on types without fields.
- #312996 Break out of endless loop in date_repeat calculation.
- #294851 Date PHP4: Make timezone_identifiers and timezone_abbreviations into statics variable to reduce execution time.
- #294851 Date PHP4: Make timezone_map into a static variable to reduce execution time.
- #314959 Keep repeating dates off the teaser as well as the node.
- #312598 Date PHP4 functions can be off by 1 hour during the day dst changes, add a fix for that.
- Date PHP4: Add new settings area where you can choose whether to use the faster native timezone adjustments for current dates.
- Add new repeat selection widgets to widgets that can set increments and date parts.
- #307544 Get rid of extra line feed at end of ical description.
- #304370 Fix typo in popup css.
- #265076 Add some fallback handling for text input that can accept missing time.
- #313447 Throw an error on required dates that have no values filled out.
- #312539 Improvements in translation text.
- #296529 Remove text saying UNTIL date is not included in results, it should be.
- #296529 Make sure UNTIL date takes time into account to avoid missing final date.
- #312974 Add missing closing span in date theme.

Version 5.2.3
===============
- #307406 Remove debug cruft from Date Popup.
- #306819, #307406 Month translated was using wrong variable name.

Version 5.2.2
===============
- Fix critial error in date_t() that was returning nothing for translated names.
- Add some validation to date repeat logic to avoid trying to process invalid values.
- #304631 Fix validation check for required field that was always triggered.
- #304762 Add missing folders for translations.

Version 5.2.1
===============
- Move timezone handling logic to Date API so we can use it in Calendar, too.
- Rework the date_id formatting to use the new #delta value being passed from CCK.
- #196468 Add link to add a date field to a content type in Date Copy, uses new CCK feature to import from file.
- The timezone translation names in the install file must use underscores instead of spaces.
- #295753 When using a date form in an exposed filter, make sure 'now' is only applied if the filter is not submitted.
- #295753 When using a date form in an exposed filter, get the exposed filter delta, not the filter delta.
- #297021 Fix summary link title for date argument views.
- #302351 Add timezone info to node_load() and adjust tokens to set the right timezone.
- Replace all include_once() with require_once().
- #276270 Add missing break in date_convert() switch for ICAL.
- #301385 Change hook_requirements() to only set message in runtime to avoid install profile errors.
- #299112 Adjust date_convert() to adapt to am/pm when data source is an array.
- #299112 Don't change 12 hour time to 24 hour time until after validation.
- Make sure date_week() trims input value so you can use it with a regular datetime value.
- Change error messages for ical imports to watchdog messages.
- #294185 Add test for non-NULL values when concating the from/to date values, using COALESCE.
- #300319 Move apostrophe in PostgreSQL offset code.
- #299594 Alter date_api_sql to handle MYSQL versions prior to 4.1.1.
- Get rid of another copy/paste error using content_instance_tablename().
- #297733 Make more kinds of custom formats display correctly.
- Change date description for empty 'to' dates to only be used on date_select, the only place it will work.
- Clean up Date Popup validation.
- #275919, #267195 Clean up date_select validation: 
    add field name to from and to date so the name can be used in error messages, 
    combine error messages for field parts into a single message, 
    remove #options from text elements so we don't get meaningless core message about an invalid option,
    set error on whole element so error fields will get outlined.
- #290212 Add test for empty value to To date with 'same' default value.
- #298456 Add warnings to field settings page about changes that could result in loss of data.
- #295860 Fix flawed updates that were not resetting jscalendar widgets correctly.
- #298158 Change drupal_get_path() to drupal_load() to be sure content module gets included correctly in install file.
- #296409 Fix the hidden repeat date logic so repeating dates are only hidden on the node.

Version 5.2.0-rc7
=================

- Make sure the field values get passed to the Repeat widget.
- #292617 Make sure the Date Repeat form works properly with all possible date widgets.
- #273656 Make the Date Repeat form use the same widget the regular date form uses.
- #240156 Update Event module timezone values if the Date module is handling the timezone form.
- #296051 Fix error in computation of last day of calendar month.
- Clean up some invalid combinations like using 'DAILY' with an option like 'First Tuesday'.
- #295095 Change the repeating dates theme to show only the start and rule on the node and move the list of repeating dates to a separate tab.
- #294950 Several things in the Date Browser view were broken, including a fatal error from a missing function.
- #295753 Make sure exposed views filter does not use date if no default values are selected.

Version 5.2.0-rc6
=================

- Fix Date Popup process that was ignoring $edit values.
- Get exposed date filters to display the correct default date values.
- #294316 Views sends empty value to validation when date filter is added, need to bail out of validation gracefully.
- #289215 Shorten the size of Date Popup date box and allow the API to control the size.
- #291882 Do some tweaking of the Date Popup css to be sure backgrounds are hidden and values are overridden.
- #292945 See if there is an existing validation array before adding validation.
- #272110 Fix select lists in FF3 so they line up instead of stacking. Hopefully this will fix Safari, too.
- #272551 Remove weight for repeat element, it isn't needed and doesn't work right when weight is negative.
- #283392 Make sure widget description shows up with or without 'to' date.
- #292680 Make sure themes don't add padding to navigation h3 causing misalignment.
- #292602 Make sure dates without times do not get 'All day' added.
- #292436 Fix critical typo in new date_all_day function and add test to date_formatter_process() to keep empty value from wiping out a good one.

Version 5.2.0-rc5
=================

- #291044 Default date filter value will already be a valid datetime, don't try to adjust it.
- Check for date values before using new all day theme.
- #291683 Make sure that date range arguments will create the proper queries, titles, and links.
- Add 'All day' themes for use in nodes and calendar psuedo nodes.
- Add new DATE_FORMAT_DATE for date-only format that is used throughout the calendar.
- Rework the install file so variables can be corrected and dependent modules enabled by disabling and re-enabling Date API.
- #280863 Make sure Date Timezone and Date PHP4 can be uninstalled by keeping module_enable() in the install.
- Make sure PHP4 date_modify() does not care if there is a space between the number and the date part.
- Make sure we don't use mktime() in compare_date() function, won't work reliably in PHP4.
- Make sure PHP4 wrapper code doesn't try to use date() on values outside the 32 bit signed range.

Version 5.2.0-rc4
=================

- #286454 Add fix for Views substitutions error handling %%s to work like the fix for %%d.
- #286864 Fix wrong RRULE value being passed to validator and add trim() to get repeating dates working again.
- #286864 Need a different fix for timezone API since this fix broke Date Repeat.
- #283107 Evaluate date and time parts separately since we can't know or care how they're combined in the complete date format.
- #283107 Date Popup timepicker formats need adjustment before using date_convert_from_custom().
- Exception dates were getting lost when parsing the RRULE.
- Increase size of Date Popup input box to accept longer formats that the new datepicker allows.
- #287325 Change the default date type in the date handler to DATE_DATETIME.
- Hide image div in Date Popup timeentry css to keep FF from displaying a 'helpful' dropdown.
- Move date_format_options() to Date API so other code can use it.
- #279247 Make sure date_timezone element works no matter what the parent element name is.
- Fix undefined index in PHP4 date_datetime2timestamp() function.
- #265076 Avoid use of strtotime and use date_create instead as date_text validator.
- #277771 Fix date_gmmktime() computation in PHP4 date handling to avoid erratic daylight savings time problem.
- Fix computation of 'now' in PHP4 date_create() function.
- Fix some inconsistencies in the expectation of whether date_fuzzy_datetime returns a datetime or ISO value.
- Don't use date_make_date() in date_convert() to avoid cyclical references.
- Set a warning message for invalid non-required Date popup values instead of silently setting to NULL.
- Check for invalid inputs to the date handler argument handling.
- Move the class configuration to the theme so it is easier for themers.
- #284455 Fix copy/paste error in date.install that used D6 function content_instance_tablename.
- Remove code previously commented out that forced required value to current date, seems to be working right.
- Move #validate parameters to element processing step instead of hook_element() to help ensure they don't get wiped out.
- Add PHP documentation about difference between Views widgets and regular FAPI element processing values.
- #282408 Fix mistake in css float that caused all date parts to move to new line.
- Make sure partial dates, like year-only, get the right range computed for them.

Version 5.2.0-rc3
=================

- #282408 Make sure dates only float when there are two of them by adding #date_float parameter.
- Add sort to argument handler.
- #281623 Switch old jscalendar widgets to use date_text instead of date_popup since date_popup may not be available.
- Make sure empty time does not get value on submit.
- Use same date widget for Views filter as the field uses.
- Rework argument handling and break out each op as a separate handler to simplify maintenance.
- #277420 Change logic for setting granularity of view format to use drupal_clone to prevent problem where format got set to year in PHP4.
- #277420 Another fix to make sure official release of Views does not wipe out %%d.
- Format interval theme added 'ago' twice to past events.
- Need a space between the date and the timezone name in the Date theme.
- #280899, #273344 Make sure Date Popup doesn't inject the current date into empty fields.
- Fix computation of year range in date_content_generate.

Version 5.2.0-rc2
=================

New Features

- #272551 Add option to expand or collapse repeating date options.
- #261610 Add option for the date theme to display only a single date if $node->date_id is set.
- #187599 Backport content_generate so Devel module can create data for CCK fields when creating nodes.
- #233415 separate ical retrieval and parser so other modules like feedapi can use the parser alone.
- Update date copy to convert either version 1 or version 2 Event nodes.
- Trigger js timezone detection on user edit form and registration form.

Timezone handling

- Fix inconsistencies in handling of 'none' and 'user' timezones in Date and Calendar.
- Add static variable to PHP4 timezone offset handling to reduce number of database queries.
- #270316 Fix postgres timezone adjustment.
- #279051 Fix postgres timezone test.
- Centralize method of setting timezone adjustments for filters and arguments.
- Fix PHP4 handler for date_timezone_set() which was incorrectly altering the timestamp value.
- #269834 Add timezone adjustment to PHP4 date_format() wrapper.
- Rework PHP4 date handling to avoid any use of date() or mktime(), which may inject an incorrect timezone offset.
- Get rid of the adodb method of computing the gmt offset for PHP4 and use the date_offset_get() computation.
- Fix use of wrong value for timezone in repeating dates.
- #270267 Remove timezone_identifiers_list() in the install file from the global space.
- Change method of showing multiple values with timezones on forms and show them in every instance. 
  This is to simplify the processing and avoid errors when trying to apply the timezone in the 
  first item to all other items.
- Backport the improved sql handler (with better timezone handling) from the D6 version.
- #270304 Timezone was not getting saved in field and user account.
- Omit the timezone from the process to store the current date parts in the form.
- More work to ensure all the right timezone files are available in installations and updates.
- Fix critical typo in date_get_timezone() that set the timezone to the site timezone even if it isn't right.
- Display the timezone when that format is selected, and pull the timezone out of format strings.
- Change method of getting translations for all timezones into the install file.
- Make sure anonymous users don't see timezone message.
- Fix critical flaw in the new timezone list handling that was creating an invalid array.
- Prepare for proposed core timezone handling from #11077 by getting rid of deprecated timezones and adding in js timezone name detection.
- Rework default timezone handling to force a valid date even when timezones are not set to get rid of numerous installation and operational errors caused by invalid date objects.
- Update site timezone offset during cron and user offset during login to make sure that modules that rely on the timezone offset  have current information to process when the offset changes.
- Clean up timezone handling in date repeat logic.
- #234360 fix date_server_zone_adj() function.

Other

- #275797 Remove invalid and unneeded css display:relative.
- #280041 Fix typo in postgres switch code in date_api_sql.inc.
- Make sure Date filter dates from both the Date Popup and a regular textfield get treated the same.
- #264749 Fix typo in date_ical_date which unset the date.
- Fix Date Browser week navigation.
- #277420 Add missing format information for minutes and seconds to date_sql_handler.
- Make sure the timezone always goes on its own line now that date elements float.
- #279932 Remove length from integer rows so they don't create errors in postgres.
- #277420 Add test to Views filter so it won't try to process a 5.1 style filter value, which would break.
- Simplify Views handling by using new date_sql_hander() function that was backported from D6.
- Add week handling and granularity tests to date_sql_handler().
- Set date prefix on date navigation css classes.
- Fix computation of 'N' in PHP4 date_format() wrapper to get date_week() working right in PHP4.
- #275213 Wrong year value in date_week_range().
- #274403 Fix typo in date_hours().
- #272110 Alter css so that from/to dates can float next to each other.
- #275490 Remove orphaned punctuation at beginning of string in date_limit_format().
- #277549 Make sure no repeats are created if no start date was set.
- If there's no offset field, don't try to add it to view.
- #272523 Fix error in PHP4 wrapper code that kept date_modify from working reliably.
- #273344 Make sure incomplete Date Popup values get converted into complete dates.
- #276544 Rework system for handling timezone in date theme.
- Rework Views filters, especially the 'now' and '+1' filters.
- #251994 Add code to adjust NOW() by a number of seconds to allow NOW() to be the beginning of the day.
- Was using wrong value for field type in Views and losing conversion to the right date value.
- Remove as many dependencies as possible from install files and auto-enable necessary modules.
- Date Popup was not handling empty non-required values correctly and they were defaulting to current date.
- #273727 Small fixes to field settings validation.
- #248338 and #254819 clean up date_limit_format() to better handle punctuation and escaped letters.
- The jQuery calendar requires year, month, and day or it won't work, add validation for that in the settings.
- #270358 Fix handling of year-only or month-only text fields to save the right values.
- Remove unneeded hook_form_alter() used to fix radio values for granularity.
- Make sure granularity is in correct format before setting value in field settings form.
- Clean up Date popup validation.
- Fix undefined indexes in date_repeat_calc.inc.
- #232959 Get rid of unwanted scrollbars in date fieldsets using trick discovered by threexk.
- #251479 Keep pathauto from trying to compute date value for node type without a date.
- Add a is_string() test to the date_is_valid() function.
- Date_fuzzy_date was not handling input from date_popup or date_text in the right way.
- #260611 Replace substr with drupal_substr where used to get month and day abbreviations.
- The granularity options were not saved correctly by CCK when provided as checkboxes, change them back to a select widget and fix the bad values in an update.
- Have the date_text element handle its own format description instead of doing it in the Date module.
- Empty values were getting saved.
- #257353 No need for format description when using select widget.
- #270626 Fix documentation errors that use create_date() instead of date_create().
- Fix computation of week range computed from views arguments.
- #263377 Re-fix patch that I broke in later commit.
- Comment out RRULE temporarily until repeating rules are fixed.
- Change expected form values to match latest changes in CCK admin form.
- #261631 No longer using $append, so get rid of it.
- #264208 Fix fatal typo in date_limit_format() regex.
- #263377 Fix bad arguments for date_formatter_process.
- #263078 Fix error in setting up db session info that was triggering the MYSQL code for POSTGRES.
- Add calendar week calculations to the Date API so we can move them out of Calendar module to be able to use them in any date application.
- #258688 fix typo in file name that used the D6 content module naming convention.
- #130689 Move include code in the install file into a function and out of the global scope.
- #255911 node_submit() is not necessary for data integrity check.
- #257059 and #248935, committing a work-around for a Views error that has been fixed but is not in an official release yet.
- Add missing strtotime validation and format help text to textfield date and clarify that it's really a custom input format (which uses strtotime if the custom input fails).
- #256079 make translation of abbreviations easier.
- #256078 Fix typo in popup calendar.
- #255739 Fix backwards validation message when testing that the To date is greater than the From date.
- #248935 Double escaping no longer needed with latest Views dev version, so remove it.
- #251511 Rename function to avoid clash with Diff module.
- #232820 Clean up Date Browser block theme.
- #234073 Make sure empty but required textfield gets a meaningful error message.
- #234021 fix date_repeat timestamp errors.
- #234102 It turns out that we must always force use of the lower level date functions because regular strtotime and mktime can be off by one hour during daylight savings time.
- #219003 Add validation code to date views filter handlers so they will work correctly as exposed filters.
- #234073 Provide a way to make required textfield start out with blank values.
- #239900, #249399 Limit available formats for Date Popup to available formats and hide custom format code which won't work right here.
- Can't use date_make_date within date_part_extract without setting up potential circular reference.
- Format_interval logic was backwards.
- Starting some improvements to Views handling, including new sql function to allow formatting dates in sql.
- #236889 Make sure date_select validation only checks required granularity.
- #234073 Provide a way to make a required date start out with blank values.
- #247749 don't use date popup on system date form, too many potential conflicts.
- #233805 was using wrong value for date type in views filter.
- #242433 adjust timestamps to datetime when creating repeating dates.
- #240980 coder compliance fixups.
- #225738 Add special case handling for year only or year and month only ISO dates.
- #244025 make the jquery calendar code more efficient.

Version 5.2.0-rc
================
NOTE! The new version has several new files and is completely re-organized. Empty the module folder completely before adding the contents of the new version. If you don't do that, Drupal may try to use some of the invalid, older files and things will not work correctly. After updating the files on your system, visit the modules page and look for the new Date/Time section and enable the new modules. Then visit update.php to update your database and make sure your site timezone name is correctly set at admin/settings/date-time.

If you use the Token module, be sure to use the latest version of it, too, currently that is the development version. The older version was using the older Date API.

This version should be matched up with the 5.2 version of the Calendar module.

* The Date API now uses PHP 5.2 date functions for better date and timezone handling (and has PHP 4 emulations for those functions so the module will work in PHP4). Although the code will work with PHP 4, it is significantly faster and more efficient under PHP 5.2 or higher, so PHP 5.2 is highly recommended.
* No more need for the adodb date library, historical dates earlier than 1970 and later than 2038 are handled without any external code.
* iCal integration is greatly improved, an iCal parser can parse events, alarms, most types of dates and timezones, duration, repeat rules, and more.
* The Date API creates date elements that can be used by any module, including 'date_select', 'date_textfield', and 'date_timezone'.
* A new Date Timezone module overloads the site and user timezone selectors to allow you to select a timezone name instead of a timezone offset, and that stored name is used to properly adjust date values. It also detects the user's timezone name automatically and updates the user record with that name.
* A new Date Popup module creates a jQuery popup calendar date picker and time picker, and the element is available to other modules as a form type of 'date_popup'.
* The Date module now has lots of new ways to define default values -- you can set a the default to 'blank', 'now', or 'relative', where relative is something like '+90 days'. The To date has a separate default value, which can be the same as the From date or do something different.
* A Date Repeat API module has been added which can be used by any other module. The CCK Date module uses it to allow you to select 'repeating' as a type of multiple date, present the user with a form to select the repeat rules for their date, and then create all the multiple values that match those rules.

File

CHANGELOG.txt
View source
  1. Date Module 5.2
  2. =================
  3. Version 5.2-dev
  4. =================
  5. Version 5.2.8
  6. ===============
  7. - #418174 Timestamp format should not be run through date_limit_format().
  8. - #473308 Add handling for year-only date stored in timestamp field.
  9. - Fix date_limit_format() to be sure the 'T' is stripped out of ISO dates with only date or only time.
  10. - #369020 Switch '+1 Sunday' to 'First Sunday' to over PHP5 bug.
  11. - #315443 Make sure 'within' labels don't break when used in text fields.
  12. - #381370 Remove escaping for colon and double quote per ical spec.
  13. - #456460 Break out simple themes for date_display_single and date_display_double for easier control by themers of separator and other html.
  14. - #384258 Fix broken handling of 24 hour time in Date Popup.
  15. - #401152 Fix broken handling of long month name in input format.
  16. Version 5.2.7
  17. ===============
  18. - #452420 Revert change of hyphen to dash in date display, dash is handled badly by token and elsewhere.
  19. - #347080 Using 'first' and 'last' is more reliable than '+1 week' in strtotime().
  20. - #369020 Fix bug when finding first or last Mon/Tue/Wed/Thu/Fri/Sat/Sun of month.
  21. - #427830 Postgres can't handle \T.
  22. - #417032 Fix typo that caused date fields using text widget not to have values saved.
  23. - #418206 All date elements should be in datetime format when processing elements.
  24. - #375864 Clean up date_limit_format() to handle more odd formats.
  25. - #338253 Fixes to translation of timezone names.
  26. - #409476 Make sure empty UNTIL date is not parsed into RRULE.
  27. Version 5.2.6
  28. ===============
  29. - #314959 Make sure non-requested date fields are not displayed.
  30. - #317105 Update Isreal DST rules.
  31. - #342423 Add 'date_popup' class to Date popup for jQuery targetting.
  32. - #368305 Date browser week view was cutting off one second too late.
  33. - #380754 Grouped date handler needs 'AND' when it has a $where clause.
  34. - #310438 Clear up confusion when more than one date filter is used in the same view.
  35. - #408770 Abort date_combo processing when user has no #access.
  36. - #388728 Change dash to en dash in date range theme.
  37. - #414290 Update timezone form_alter to account for difference between Event version 1 and 2.
  38. - #400992 Add time and datetime tokens.
  39. - #408176 Fix token handling of empty values.
  40. - #354989 Make sure year-only date does not regress to YYYY-00-00 00:00:00, which will end up as previous year.
  41. - #398258 Fix problems handling blank text widget values and general form processing cleanup.
  42. - #397420 Fix miscalculation errors in date_difference.
  43. - #375864 Make sure date_limit_format() doesn't keep formats that are only escaped strings.
  44. - Improve interpretation of argument date ranges.
  45. - Improve handling of translation for Date repeat rules.
  46. - #375551 The 'All day' formatting should not be applied to format_interval formats.
  47. - Date PHP4: fix inconsistency in offset computation for first two hours of the day dst changes.
  48. - Date PHP4: eliminate some needless cycles to improve performance.
  49. - iCal TRIGGER can either be a date or a duration.
  50. - Fix to iCal: alter the end date of all day events to match the to date.
  51. The ical practice of setting the End date as the next day won't work for our interal use of this value.
  52. - #347090 Fix southern hemisphere timezone adjustment for PHP4.
  53. - Fix bug that caused date_select to end up as current date.
  54. - #313369 Repeating date with exceptions created error when exceptions data is appended.
  55. - Fix bad PHP4 regex that caused endless looping in calendar and broken logic elsewhere.
  56. - Make the PHP4 code forgiving enough to accept '+ 1 month' instead of '+1 month'.
  57. - #292942 Only load timezone js file in timezone forms.
  58. - Fix broken handling of some partial (year or month and year) dates and pave the way for fuzzy granularity by adjusting date_is_valid() and date_make_date() to better handle partial dates.
  59. - #347080 Fix PHP4 southern timezone computation and New Zealand region.
  60. - #353327 Check for Event 2 timezone table before trying to use it.
  61. - Fix logic for collapsing the Date repeat fieldset.
  62. - Date Popup should handle empty time better.
  63. - #310633 Rework 'all day' logic to correctly handle increments.
  64. - #346804 Don't use D6 function in D5 version!
  65. - #324290 Don't validate when $items is empty.
  66. - #313704 Make sure date db timezone does not get removed before token handling.
  67. - #345862 Fix missing close comment tag in datepicker css.
  68. - Get rid of DURATION time part details in iCal array, we only need the DATA and DURATION.
  69. - #282521 Do more work on LOCATION to split out UID and handle odd upcoming.org location identifiers.
  70. - Add more error trapping to ical parser.
  71. - Add handling to ical parser for odd upcoming.org location format.
  72. - #341705 Fix broken iCal DURATION parsing.
  73. - Add some protection against empty or missing info in ical parser.
  74. - #343190 Add validity testing to date_api_ical_build_rrule().
  75. - #307166 Make sure timestamps with missing granularity parts in select widgets get defaulted to empty values and saved correctly.
  76. Version 5.2.5
  77. ===============
  78. - Fix background colors in Date Popup.
  79. - #273730 Don't use REGEX_LOOSE on YEAR, MONTH, or DAY filters.
  80. - #314675 Don't try to strip labels out of select lists if the value is not an array.
  81. - Make sure empty time in Date Popup filter will still work.
  82. - Fix use of D6 table name in install file.
  83. - Add ability to analyze a period to period argument, like P1M--P1Y.
  84. - Add date_increment_round() to date_content_generate to make sure generated dates match increment settings.
  85. - #301279 Remove README.txt for Date Popup, it's out of date and I'm moving documentation into the d.o handbook and Advanced Help.
  86. - #337075 Change background-color:none to background-color:transparent.
  87. - #324756 Bypass validation for empty, non-required dates.
  88. - Fix broken Date API test broken by change in API.
  89. - #340394 Fix four-digit year format for PostgreSQL.
  90. - Fix bug in new date_field_get_sql_handler() helper function to pick up the right timezones for the handler.
  91. - Date picker can't handle some year ranges that work in Date API, so adjust it as needed.
  92. - #338237 Replace 'local_offset_field' with 'offset_field' in date handler.
  93. - Make sure node edit form uses the right timezone for the database and field type.
  94. - Fix logic error in date_convert when using timestamp with timezone other than UTC.
  95. - #340356 Missed removing date_timezone_convert() in one place.
  96. - #336255 Fix a few remaining places where timezone=none was not being handled correctly, and add update to clean up incorrect values stored in database.
  97. - Eliminate date_timezone_convert() which wasn't working correctly to adjust dates without timezones and get rid of hard-coded 'UTC' for database values in favor of consistently using date_get_timezone_db().
  98. - Date sql handler wasn't properly setting db timezone to UTC for mysql databases.
  99. - #336255 Add new helper functions to make work of other modules, like Signup, easier. One helper to create a date handler for a field and another to do make date math easier.
  100. Version 5.2.4
  101. ===============
  102. - #309155 Get rid of all translation during date_repeat calculations, it was causing timeouts with locale module.
  103. - #336109 Add handling for ordinals to custom date formatting.
  104. - #265076, #324794 Revert attempt to use strtotime to 'guess' text input since it too often ends up silently turning into 'now'.
  105. - #303951 Relax requirements for text date input to allow single digit months and days.
  106. - #309617 Make DATE_REGEX_LOOSE a bit looser so the @ argument will work right for single digit months and days.
  107. - #313933 Don't query for date_browser views when there are no arguments.
  108. - #314012 Move date_views_filter_value() to date_api.module so it's available if Date module is disabled.
  109. - Adapt processing to make sure only selected dates display in nodes, views, and calendars.
  110. - Add Views field handler for date that can be smarter about grouping date values in views.
  111. - Do a little more work on clarifying the repeat descriptions.
  112. - Fix PHP4 timezone problem that didn't save timezone changes correctly in rare cases when refreshing zones using devel.
  113. - Add 'UNTIL' to the RRULE creation function so it can be used by the API and date_content_generate.
  114. - Update date_content_generate to find more matches in a more limited period.
  115. - #322845 Make sure delta is passed to date theme so repeating dates display correctly in Views.
  116. - Make sure repeating date UNTIL date is properly adjusted for timezone.
  117. - Add repeating dates to hook_content_generate().
  118. - #296529 Update repeating date computations to properly adjust the UNTIL date to the right time and timezone so the end date gets picked up correctly.
  119. - Move repeating date computations into their own function so they can be used by hook_content_generate.
  120. - #326732 Fix local task to create Date repeats tab, check for valid node and add !may_cache.
  121. - #319452 Fix bug in PHP4 calculation of +/-1 week when using Monday as the first day of the week.
  122. - #319452 Make sure repeating date calculations like 'the 5th Sunday' don't prematurely jump to the following period.
  123. - Fix bug in PHP4 calculation of date_date_set() that was getting the day wrong.
  124. - #329102 Fix mistake in README.txt.
  125. - #317057 Make sure existing optional date with empty value doesn't get reset to current date.
  126. - Add more checks in PHP4 functions to return usable values when we don't have complete timezone information in the PHP4 wrapper.
  127. - Add helper function to convert input values based on field type.
  128. - Fix timezone caching -- it was resetting when it didn't need to, consuming resources.
  129. - Found a better way to generate random timezones using mt_rand() instead of rand() to avoid getting lots of duplicates.
  130. - Found some timezones that can't be used in PHP4 because we don't have offset information, so remove them from timezone lists.
  131. - Fix error in PHP4 dst switch date for North America.
  132. - #327506 Detect and trap bad timezones in ical import so they don't create errors.
  133. - Fix the way 'rel=nofollow' was added to the Date browser.
  134. - #240156 Workaround conflict between Event and Date by using #process on timezone forms to override Event module handling.
  135. - #174580 Add rel=nofollow to back/next links.
  136. - #322446 Avoid extra space in date theme when there is no timezone.
  137. - Don't try to find repeating fields on types without fields.
  138. - #312996 Break out of endless loop in date_repeat calculation.
  139. - #294851 Date PHP4: Make timezone_identifiers and timezone_abbreviations into statics variable to reduce execution time.
  140. - #294851 Date PHP4: Make timezone_map into a static variable to reduce execution time.
  141. - #314959 Keep repeating dates off the teaser as well as the node.
  142. - #312598 Date PHP4 functions can be off by 1 hour during the day dst changes, add a fix for that.
  143. - Date PHP4: Add new settings area where you can choose whether to use the faster native timezone adjustments for current dates.
  144. - Add new repeat selection widgets to widgets that can set increments and date parts.
  145. - #307544 Get rid of extra line feed at end of ical description.
  146. - #304370 Fix typo in popup css.
  147. - #265076 Add some fallback handling for text input that can accept missing time.
  148. - #313447 Throw an error on required dates that have no values filled out.
  149. - #312539 Improvements in translation text.
  150. - #296529 Remove text saying UNTIL date is not included in results, it should be.
  151. - #296529 Make sure UNTIL date takes time into account to avoid missing final date.
  152. - #312974 Add missing closing span in date theme.
  153. Version 5.2.3
  154. ===============
  155. - #307406 Remove debug cruft from Date Popup.
  156. - #306819, #307406 Month translated was using wrong variable name.
  157. Version 5.2.2
  158. ===============
  159. - Fix critial error in date_t() that was returning nothing for translated names.
  160. - Add some validation to date repeat logic to avoid trying to process invalid values.
  161. - #304631 Fix validation check for required field that was always triggered.
  162. - #304762 Add missing folders for translations.
  163. Version 5.2.1
  164. ===============
  165. - Move timezone handling logic to Date API so we can use it in Calendar, too.
  166. - Rework the date_id formatting to use the new #delta value being passed from CCK.
  167. - #196468 Add link to add a date field to a content type in Date Copy, uses new CCK feature to import from file.
  168. - The timezone translation names in the install file must use underscores instead of spaces.
  169. - #295753 When using a date form in an exposed filter, make sure 'now' is only applied if the filter is not submitted.
  170. - #295753 When using a date form in an exposed filter, get the exposed filter delta, not the filter delta.
  171. - #297021 Fix summary link title for date argument views.
  172. - #302351 Add timezone info to node_load() and adjust tokens to set the right timezone.
  173. - Replace all include_once() with require_once().
  174. - #276270 Add missing break in date_convert() switch for ICAL.
  175. - #301385 Change hook_requirements() to only set message in runtime to avoid install profile errors.
  176. - #299112 Adjust date_convert() to adapt to am/pm when data source is an array.
  177. - #299112 Don't change 12 hour time to 24 hour time until after validation.
  178. - Make sure date_week() trims input value so you can use it with a regular datetime value.
  179. - Change error messages for ical imports to watchdog messages.
  180. - #294185 Add test for non-NULL values when concating the from/to date values, using COALESCE.
  181. - #300319 Move apostrophe in PostgreSQL offset code.
  182. - #299594 Alter date_api_sql to handle MYSQL versions prior to 4.1.1.
  183. - Get rid of another copy/paste error using content_instance_tablename().
  184. - #297733 Make more kinds of custom formats display correctly.
  185. - Change date description for empty 'to' dates to only be used on date_select, the only place it will work.
  186. - Clean up Date Popup validation.
  187. - #275919, #267195 Clean up date_select validation:
  188. add field name to from and to date so the name can be used in error messages,
  189. combine error messages for field parts into a single message,
  190. remove #options from text elements so we don't get meaningless core message about an invalid option,
  191. set error on whole element so error fields will get outlined.
  192. - #290212 Add test for empty value to To date with 'same' default value.
  193. - #298456 Add warnings to field settings page about changes that could result in loss of data.
  194. - #295860 Fix flawed updates that were not resetting jscalendar widgets correctly.
  195. - #298158 Change drupal_get_path() to drupal_load() to be sure content module gets included correctly in install file.
  196. - #296409 Fix the hidden repeat date logic so repeating dates are only hidden on the node.
  197. Version 5.2.0-rc7
  198. =================
  199. - Make sure the field values get passed to the Repeat widget.
  200. - #292617 Make sure the Date Repeat form works properly with all possible date widgets.
  201. - #273656 Make the Date Repeat form use the same widget the regular date form uses.
  202. - #240156 Update Event module timezone values if the Date module is handling the timezone form.
  203. - #296051 Fix error in computation of last day of calendar month.
  204. - Clean up some invalid combinations like using 'DAILY' with an option like 'First Tuesday'.
  205. - #295095 Change the repeating dates theme to show only the start and rule on the node and move the list of repeating dates to a separate tab.
  206. - #294950 Several things in the Date Browser view were broken, including a fatal error from a missing function.
  207. - #295753 Make sure exposed views filter does not use date if no default values are selected.
  208. Version 5.2.0-rc6
  209. =================
  210. - Fix Date Popup process that was ignoring $edit values.
  211. - Get exposed date filters to display the correct default date values.
  212. - #294316 Views sends empty value to validation when date filter is added, need to bail out of validation gracefully.
  213. - #289215 Shorten the size of Date Popup date box and allow the API to control the size.
  214. - #291882 Do some tweaking of the Date Popup css to be sure backgrounds are hidden and values are overridden.
  215. - #292945 See if there is an existing validation array before adding validation.
  216. - #272110 Fix select lists in FF3 so they line up instead of stacking. Hopefully this will fix Safari, too.
  217. - #272551 Remove weight for repeat element, it isn't needed and doesn't work right when weight is negative.
  218. - #283392 Make sure widget description shows up with or without 'to' date.
  219. - #292680 Make sure themes don't add padding to navigation h3 causing misalignment.
  220. - #292602 Make sure dates without times do not get 'All day' added.
  221. - #292436 Fix critical typo in new date_all_day function and add test to date_formatter_process() to keep empty value from wiping out a good one.
  222. Version 5.2.0-rc5
  223. =================
  224. - #291044 Default date filter value will already be a valid datetime, don't try to adjust it.
  225. - Check for date values before using new all day theme.
  226. - #291683 Make sure that date range arguments will create the proper queries, titles, and links.
  227. - Add 'All day' themes for use in nodes and calendar psuedo nodes.
  228. - Add new DATE_FORMAT_DATE for date-only format that is used throughout the calendar.
  229. - Rework the install file so variables can be corrected and dependent modules enabled by disabling and re-enabling Date API.
  230. - #280863 Make sure Date Timezone and Date PHP4 can be uninstalled by keeping module_enable() in the install.
  231. - Make sure PHP4 date_modify() does not care if there is a space between the number and the date part.
  232. - Make sure we don't use mktime() in compare_date() function, won't work reliably in PHP4.
  233. - Make sure PHP4 wrapper code doesn't try to use date() on values outside the 32 bit signed range.
  234. Version 5.2.0-rc4
  235. =================
  236. - #286454 Add fix for Views substitutions error handling %%s to work like the fix for %%d.
  237. - #286864 Fix wrong RRULE value being passed to validator and add trim() to get repeating dates working again.
  238. - #286864 Need a different fix for timezone API since this fix broke Date Repeat.
  239. - #283107 Evaluate date and time parts separately since we can't know or care how they're combined in the complete date format.
  240. - #283107 Date Popup timepicker formats need adjustment before using date_convert_from_custom().
  241. - Exception dates were getting lost when parsing the RRULE.
  242. - Increase size of Date Popup input box to accept longer formats that the new datepicker allows.
  243. - #287325 Change the default date type in the date handler to DATE_DATETIME.
  244. - Hide image div in Date Popup timeentry css to keep FF from displaying a 'helpful' dropdown.
  245. - Move date_format_options() to Date API so other code can use it.
  246. - #279247 Make sure date_timezone element works no matter what the parent element name is.
  247. - Fix undefined index in PHP4 date_datetime2timestamp() function.
  248. - #265076 Avoid use of strtotime and use date_create instead as date_text validator.
  249. - #277771 Fix date_gmmktime() computation in PHP4 date handling to avoid erratic daylight savings time problem.
  250. - Fix computation of 'now' in PHP4 date_create() function.
  251. - Fix some inconsistencies in the expectation of whether date_fuzzy_datetime returns a datetime or ISO value.
  252. - Don't use date_make_date() in date_convert() to avoid cyclical references.
  253. - Set a warning message for invalid non-required Date popup values instead of silently setting to NULL.
  254. - Check for invalid inputs to the date handler argument handling.
  255. - Move the class configuration to the theme so it is easier for themers.
  256. - #284455 Fix copy/paste error in date.install that used D6 function content_instance_tablename.
  257. - Remove code previously commented out that forced required value to current date, seems to be working right.
  258. - Move #validate parameters to element processing step instead of hook_element() to help ensure they don't get wiped out.
  259. - Add PHP documentation about difference between Views widgets and regular FAPI element processing values.
  260. - #282408 Fix mistake in css float that caused all date parts to move to new line.
  261. - Make sure partial dates, like year-only, get the right range computed for them.
  262. Version 5.2.0-rc3
  263. =================
  264. - #282408 Make sure dates only float when there are two of them by adding #date_float parameter.
  265. - Add sort to argument handler.
  266. - #281623 Switch old jscalendar widgets to use date_text instead of date_popup since date_popup may not be available.
  267. - Make sure empty time does not get value on submit.
  268. - Use same date widget for Views filter as the field uses.
  269. - Rework argument handling and break out each op as a separate handler to simplify maintenance.
  270. - #277420 Change logic for setting granularity of view format to use drupal_clone to prevent problem where format got set to year in PHP4.
  271. - #277420 Another fix to make sure official release of Views does not wipe out %%d.
  272. - Format interval theme added 'ago' twice to past events.
  273. - Need a space between the date and the timezone name in the Date theme.
  274. - #280899, #273344 Make sure Date Popup doesn't inject the current date into empty fields.
  275. - Fix computation of year range in date_content_generate.
  276. Version 5.2.0-rc2
  277. =================
  278. New Features
  279. - #272551 Add option to expand or collapse repeating date options.
  280. - #261610 Add option for the date theme to display only a single date if $node->date_id is set.
  281. - #187599 Backport content_generate so Devel module can create data for CCK fields when creating nodes.
  282. - #233415 separate ical retrieval and parser so other modules like feedapi can use the parser alone.
  283. - Update date copy to convert either version 1 or version 2 Event nodes.
  284. - Trigger js timezone detection on user edit form and registration form.
  285. Timezone handling
  286. - Fix inconsistencies in handling of 'none' and 'user' timezones in Date and Calendar.
  287. - Add static variable to PHP4 timezone offset handling to reduce number of database queries.
  288. - #270316 Fix postgres timezone adjustment.
  289. - #279051 Fix postgres timezone test.
  290. - Centralize method of setting timezone adjustments for filters and arguments.
  291. - Fix PHP4 handler for date_timezone_set() which was incorrectly altering the timestamp value.
  292. - #269834 Add timezone adjustment to PHP4 date_format() wrapper.
  293. - Rework PHP4 date handling to avoid any use of date() or mktime(), which may inject an incorrect timezone offset.
  294. - Get rid of the adodb method of computing the gmt offset for PHP4 and use the date_offset_get() computation.
  295. - Fix use of wrong value for timezone in repeating dates.
  296. - #270267 Remove timezone_identifiers_list() in the install file from the global space.
  297. - Change method of showing multiple values with timezones on forms and show them in every instance.
  298. This is to simplify the processing and avoid errors when trying to apply the timezone in the
  299. first item to all other items.
  300. - Backport the improved sql handler (with better timezone handling) from the D6 version.
  301. - #270304 Timezone was not getting saved in field and user account.
  302. - Omit the timezone from the process to store the current date parts in the form.
  303. - More work to ensure all the right timezone files are available in installations and updates.
  304. - Fix critical typo in date_get_timezone() that set the timezone to the site timezone even if it isn't right.
  305. - Display the timezone when that format is selected, and pull the timezone out of format strings.
  306. - Change method of getting translations for all timezones into the install file.
  307. - Make sure anonymous users don't see timezone message.
  308. - Fix critical flaw in the new timezone list handling that was creating an invalid array.
  309. - Prepare for proposed core timezone handling from #11077 by getting rid of deprecated timezones and adding in js timezone name detection.
  310. - Rework default timezone handling to force a valid date even when timezones are not set to get rid of numerous installation and operational errors caused by invalid date objects.
  311. - Update site timezone offset during cron and user offset during login to make sure that modules that rely on the timezone offset have current information to process when the offset changes.
  312. - Clean up timezone handling in date repeat logic.
  313. - #234360 fix date_server_zone_adj() function.
  314. Other
  315. - #275797 Remove invalid and unneeded css display:relative.
  316. - #280041 Fix typo in postgres switch code in date_api_sql.inc.
  317. - Make sure Date filter dates from both the Date Popup and a regular textfield get treated the same.
  318. - #264749 Fix typo in date_ical_date which unset the date.
  319. - Fix Date Browser week navigation.
  320. - #277420 Add missing format information for minutes and seconds to date_sql_handler.
  321. - Make sure the timezone always goes on its own line now that date elements float.
  322. - #279932 Remove length from integer rows so they don't create errors in postgres.
  323. - #277420 Add test to Views filter so it won't try to process a 5.1 style filter value, which would break.
  324. - Simplify Views handling by using new date_sql_hander() function that was backported from D6.
  325. - Add week handling and granularity tests to date_sql_handler().
  326. - Set date prefix on date navigation css classes.
  327. - Fix computation of 'N' in PHP4 date_format() wrapper to get date_week() working right in PHP4.
  328. - #275213 Wrong year value in date_week_range().
  329. - #274403 Fix typo in date_hours().
  330. - #272110 Alter css so that from/to dates can float next to each other.
  331. - #275490 Remove orphaned punctuation at beginning of string in date_limit_format().
  332. - #277549 Make sure no repeats are created if no start date was set.
  333. - If there's no offset field, don't try to add it to view.
  334. - #272523 Fix error in PHP4 wrapper code that kept date_modify from working reliably.
  335. - #273344 Make sure incomplete Date Popup values get converted into complete dates.
  336. - #276544 Rework system for handling timezone in date theme.
  337. - Rework Views filters, especially the 'now' and '+1' filters.
  338. - #251994 Add code to adjust NOW() by a number of seconds to allow NOW() to be the beginning of the day.
  339. - Was using wrong value for field type in Views and losing conversion to the right date value.
  340. - Remove as many dependencies as possible from install files and auto-enable necessary modules.
  341. - Date Popup was not handling empty non-required values correctly and they were defaulting to current date.
  342. - #273727 Small fixes to field settings validation.
  343. - #248338 and #254819 clean up date_limit_format() to better handle punctuation and escaped letters.
  344. - The jQuery calendar requires year, month, and day or it won't work, add validation for that in the settings.
  345. - #270358 Fix handling of year-only or month-only text fields to save the right values.
  346. - Remove unneeded hook_form_alter() used to fix radio values for granularity.
  347. - Make sure granularity is in correct format before setting value in field settings form.
  348. - Clean up Date popup validation.
  349. - Fix undefined indexes in date_repeat_calc.inc.
  350. - #232959 Get rid of unwanted scrollbars in date fieldsets using trick discovered by threexk.
  351. - #251479 Keep pathauto from trying to compute date value for node type without a date.
  352. - Add a is_string() test to the date_is_valid() function.
  353. - Date_fuzzy_date was not handling input from date_popup or date_text in the right way.
  354. - #260611 Replace substr with drupal_substr where used to get month and day abbreviations.
  355. - The granularity options were not saved correctly by CCK when provided as checkboxes, change them back to a select widget and fix the bad values in an update.
  356. - Have the date_text element handle its own format description instead of doing it in the Date module.
  357. - Empty values were getting saved.
  358. - #257353 No need for format description when using select widget.
  359. - #270626 Fix documentation errors that use create_date() instead of date_create().
  360. - Fix computation of week range computed from views arguments.
  361. - #263377 Re-fix patch that I broke in later commit.
  362. - Comment out RRULE temporarily until repeating rules are fixed.
  363. - Change expected form values to match latest changes in CCK admin form.
  364. - #261631 No longer using $append, so get rid of it.
  365. - #264208 Fix fatal typo in date_limit_format() regex.
  366. - #263377 Fix bad arguments for date_formatter_process.
  367. - #263078 Fix error in setting up db session info that was triggering the MYSQL code for POSTGRES.
  368. - Add calendar week calculations to the Date API so we can move them out of Calendar module to be able to use them in any date application.
  369. - #258688 fix typo in file name that used the D6 content module naming convention.
  370. - #130689 Move include code in the install file into a function and out of the global scope.
  371. - #255911 node_submit() is not necessary for data integrity check.
  372. - #257059 and #248935, committing a work-around for a Views error that has been fixed but is not in an official release yet.
  373. - Add missing strtotime validation and format help text to textfield date and clarify that it's really a custom input format (which uses strtotime if the custom input fails).
  374. - #256079 make translation of abbreviations easier.
  375. - #256078 Fix typo in popup calendar.
  376. - #255739 Fix backwards validation message when testing that the To date is greater than the From date.
  377. - #248935 Double escaping no longer needed with latest Views dev version, so remove it.
  378. - #251511 Rename function to avoid clash with Diff module.
  379. - #232820 Clean up Date Browser block theme.
  380. - #234073 Make sure empty but required textfield gets a meaningful error message.
  381. - #234021 fix date_repeat timestamp errors.
  382. - #234102 It turns out that we must always force use of the lower level date functions because regular strtotime and mktime can be off by one hour during daylight savings time.
  383. - #219003 Add validation code to date views filter handlers so they will work correctly as exposed filters.
  384. - #234073 Provide a way to make required textfield start out with blank values.
  385. - #239900, #249399 Limit available formats for Date Popup to available formats and hide custom format code which won't work right here.
  386. - Can't use date_make_date within date_part_extract without setting up potential circular reference.
  387. - Format_interval logic was backwards.
  388. - Starting some improvements to Views handling, including new sql function to allow formatting dates in sql.
  389. - #236889 Make sure date_select validation only checks required granularity.
  390. - #234073 Provide a way to make a required date start out with blank values.
  391. - #247749 don't use date popup on system date form, too many potential conflicts.
  392. - #233805 was using wrong value for date type in views filter.
  393. - #242433 adjust timestamps to datetime when creating repeating dates.
  394. - #240980 coder compliance fixups.
  395. - #225738 Add special case handling for year only or year and month only ISO dates.
  396. - #244025 make the jquery calendar code more efficient.
  397. Version 5.2.0-rc
  398. ================
  399. NOTE! The new version has several new files and is completely re-organized. Empty the module folder completely before adding the contents of the new version. If you don't do that, Drupal may try to use some of the invalid, older files and things will not work correctly. After updating the files on your system, visit the modules page and look for the new Date/Time section and enable the new modules. Then visit update.php to update your database and make sure your site timezone name is correctly set at admin/settings/date-time.
  400. If you use the Token module, be sure to use the latest version of it, too, currently that is the development version. The older version was using the older Date API.
  401. This version should be matched up with the 5.2 version of the Calendar module.
  402. * The Date API now uses PHP 5.2 date functions for better date and timezone handling (and has PHP 4 emulations for those functions so the module will work in PHP4). Although the code will work with PHP 4, it is significantly faster and more efficient under PHP 5.2 or higher, so PHP 5.2 is highly recommended.
  403. * No more need for the adodb date library, historical dates earlier than 1970 and later than 2038 are handled without any external code.
  404. * iCal integration is greatly improved, an iCal parser can parse events, alarms, most types of dates and timezones, duration, repeat rules, and more.
  405. * The Date API creates date elements that can be used by any module, including 'date_select', 'date_textfield', and 'date_timezone'.
  406. * A new Date Timezone module overloads the site and user timezone selectors to allow you to select a timezone name instead of a timezone offset, and that stored name is used to properly adjust date values. It also detects the user's timezone name automatically and updates the user record with that name.
  407. * A new Date Popup module creates a jQuery popup calendar date picker and time picker, and the element is available to other modules as a form type of 'date_popup'.
  408. * The Date module now has lots of new ways to define default values -- you can set a the default to 'blank', 'now', or 'relative', where relative is something like '+90 days'. The To date has a separate default value, which can be the same as the From date or do something different.
  409. * A Date Repeat API module has been added which can be used by any other module. The CCK Date module uses it to allow you to select 'repeating' as a type of multiple date, present the user with a form to select the repeat rules for their date, and then create all the multiple values that match those rules.