Webmastersite.net
Register Log In

expired links

Comments on expired links

babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted Nov 09, 2007 - 8:42 AM:

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
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Nov 09, 2007 - 11:38 PM:

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.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



Sorry, you don't have permission to post posts. Log in, or register if you haven't yet.