Closed (fixed)
Project:
Scheduler
Version:
6.x-1.5
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Anonymous (not verified)
Created:
21 Aug 2009 at 05:29 UTC
Updated:
16 May 2024 at 00:50 UTC
Just wondering why you use regular expressions to parse the user-entered date...? Why not just a PHP function?
I ask because I tried using the format 'j M Y' in the Scheduler settings, but this came up with errors. I'm assuming because you didn't allow for this in your _scheduler_strptime() function.
Also, why does giving an unpublish date of 01/01/2011 revert to 31/12/2010?
Comments
Comment #1
eric-alexander schaefer commentedThere is no such function in PHP4. _scheduler_strptime() mimicks some of the functionality of strptime() which was introduced with PHP 5.1.0. If you know another PHP 4 function, that has the same functionality, please point me to it. The whole issue vanishes with D7, I guess...
Comment #2
eric-alexander schaefer commentedBTW: You should not use "date only" format. You should alway provide a time value...