WebmasterSite.net: PHP scripts to enable your creativity
WSN Links PHP Directory Software
PHP Scripts Webmaster Links Support Forums

Register | Forgot Password

expired links

Version: 4.1.12
Example URL: http://freewebbargains.com
printPrint


expired links
babrees
Expert
Avatar

Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 280
Total Posts: 905
Posted 11/09/07 - 06:42 AM:
quote post
#1
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:
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 5929
Posted 11/09/07 - 09:38 PM:
quote post
#2
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: http://www.gnu.org/software/tar/manual/html_node/...

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.

Edited by Paul on 11/09/07 - 11:07 PM

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
Search thread for
Download thread as


You don't have permission to post.

Please login or register.

   
 
© 2008 Paul Knierim. All rights reserved.