I am still having problems with the expired date. Not sure if it is because I have the date settings for English (%d %b, %Y) ?
When submitting I enter the date in the format dd/mm/yyyy (I have found this is best through trial and error). When it displays it shows (ie) 31 Dec 2007 which is what I want. If I need to edit the link it shows as 31 Dec 2007 in the edit template, but I MUST reinput the date otherwise when saving it changes the date to 31 Dec 1969 (no matter what the date entered was).
I also require the link to be removed at midnight, or thereabouts, so I tried inputting (ie) 11/25/2007 - 7.00PM, which would be the server time. However, when saving it changes it to 31 Dec 1969.
Comments on expired links
Expert
Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 391
Total Comments: 1303
Hi Paul
I am still having problems with the expired date. Not sure if it is because I have the date settings for English (%d %b, %Y) ?
When submitting I enter the date in the format dd/mm/yyyy (I have found this is best through trial and error). When it displays it shows (ie) 31 Dec 2007 which is what I want. If I need to edit the link it shows as 31 Dec 2007 in the edit template, but I MUST reinput the date otherwise when saving it changes the date to 31 Dec 1969 (no matter what the date entered was).
I also require the link to be removed at midnight, or thereabouts, so I tried inputting (ie) 11/25/2007 - 7.00PM, which would be the server time. However, when saving it changes it to 31 Dec 1969.
Site: http://freewebbargains.com
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Not sure if it is because I have the date settings for English (%d %b, %Y) ?
strtotime doesn't know what date settings you have. The PHP manual page says it accepts GNU date input formats: www.gnu.org/software/tar/ma...ual/html_node/tar_113.html
31 Dec 2007 would be a much safer format to type than dd/mm/yyyy, since the latter is ambigious for 12 days of every month.