Closed (won't fix)
Project:
Date
Version:
6.x-2.4
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Feb 2010 at 08:29 UTC
Updated:
26 Oct 2018 at 03:09 UTC
Jump to comment: Most recent
I created a CCK date field:
Widget: Textfield with date popup (also tried "select list")
Default value: Relative
Customize Default Value-> From date: 28 january last year
Granularity: Y/M/D (also tried Y/M/D/H/M/S)
Everything else is default
The default value is Feb 16 2009 (today's date a year ago). Date API appears to be ignoring my day and month.
I had similar results when entering "10 September 2000" (default value was Feb 16 2010).
The following PHP code returned "00:00:00 Wednesday, Jan 28 2009":
$time_string = "28 january last year";
echo strftime("%X %A, %b %e %Y", strtotime($time_string));
Thanks!
Comments
Comment #1
damienmckennaUnfortunately the Drupal 6 version of the Date module is no longer supported. That said, we appreciate that you took time to work on this issue. Should this request still be relevant for Drupal 7 please feel free to reopen it. Thank you.