Closed (fixed)
Project:
Date
Version:
6.x-2.x-dev
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
5 Dec 2008 at 13:53 UTC
Updated:
18 Jun 2009 at 18:04 UTC
Which function has been replaced from date_show_value() on Drupal 6.x version?
I've following code:
$date_start = date_show_value($start, 'db', DATE_ISO);
$date_end = date_show_value($end, 'db', DATE_ISO);
$event_start = date_show_value($start, 'db', DATE_UNIX);
$event_end = date_show_value($end, 'db', DATE_UNIX);
in resource_conflict.module
Comments
Comment #1
kenorb commentedI had to add this function manually:
Comment #2
karens commentedThe D6 and D5.2 APIs are totally different than the D5.1 API, that function was removed long ago and shouldn't be used.
Comment #3
kenorb commentedI know, but you need to write somehow this functionality if you like to convert some modules from 5.x to 6.x
Comment #4
karens commentedIf you want to convert modules from 5.1 to 6.2 you will have to learn how the new API works. There is no 'matching' function in the new API for specific functions in the old API. Things work totally differently. There is already an issue about getting more documentation done for the API, but some is in the Advanced Help for the date module, if you install the Advanced Help module, and some is in the handbook.
Comment #5
kenorb commented#336705: Upgrade Date API integration to work with Date 2 API