【发布时间】:2010-05-03 06:43:29
【问题描述】:
我有一个 CCK 日期时间字段,想将其默认值设置为 2011 年 5 月 31 日。
当我进入该字段的配置时,我可以将默认值设置为Now、Blank 或Relative。
Relative 由 PHP 的 strtotime 参数设置。但是,当我将其设置为时它失败了
-
31 May 2011--> 我今天在节点添加表单中得到了 -
last day of May 2011--> 字段配置页面出现错误The Strtotime default value for the To Date is invalid.
(根据http://php.net/manual/en/function.strtotime.php应该正常工作)
您知道如何将其设置为默认日期为 2011 年 5 月 31 日吗?
【问题讨论】:
标签: php datetime drupal drupal-6 strtotime