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

Register | Forgot Password

Expired links, when removed?

Version: 4.1.10
printPrint


Page: 1 2

Expired links, when removed?
babrees
Expert
Avatar

Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 289
Total Posts: 933
Posted 10/31/07 - 01:38 AM:
quote post
#1
If a link is set to expire on, say, 1st Nov, when does the system actually remove it, ie...
  1. by the date of the server or the sites default time?
  2. at 12.01am or midnight or someother time on the day?


Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 6014
Posted 10/31/07 - 05:58 AM:
quote post
#2
If you don't specify a time, 12:00am is assumed. There's no timezone conversion so it'd be the server time.

Edited by Paul on 10/31/07 - 06:03 AM

"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
babrees
Expert
Avatar

Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 289
Total Posts: 933
Posted 10/31/07 - 06:36 AM:
quote post
#3
Paul wrote:
If you don't specify a time, 12:00am is assumed. There's no timezone conversion so it'd be the server time.


hmm, I have only been putting in the date (didn't realise you could specify a time!) All my links on http://www.freewebbargains.com set to expire on 31st Oct were removed. Server is 5 hours behind site default time. I don't know exactly when they were deleted, just some time this morning, which isn't midnight for server.

I am also still having problems when editing a link I find that unless I reinput the date in format mm/dd/yyy it changes to a date in Dec, 1969!
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 6014
Posted 11/01/07 - 01:35 PM:
quote post
#4
If they were set to expire on 10/31 then they'd have expired at 5am. If you have them set to delete and email, that only happens the nearest hourly cron.

"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
babrees
Expert
Avatar

Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 289
Total Posts: 933
Posted 11/05/07 - 08:41 AM:
quote post
#5
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. If I need to edit the link it shows as 31 Dec 2007, 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
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 6014
Posted 11/09/07 - 01:17 PM:
quote post
#6
1) http://www.webmastersite.net/screenshots/1431.jpg
2) Submitted.
3) Going back to edit: http://www.webmastersite.net/screenshots/8700.jpg
4) Submitted edit -- I've not touched the date.
5) Back to edit again, all is well: http://www.webmastersite.net/screenshots/12759.jpg

I have other things to do than repeat this all week with variations, so before we go over this again give me an exact prodecure which will actually reproduce the issue you're seeing. Talking in generalities we're wasting time.

Edited by Paul on 11/09/07 - 01:23 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
babrees
Expert
Avatar

Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 289
Total Posts: 933
Posted 11/09/07 - 10:58 PM:
quote post
#7
1. Submit link, enter date in format mm/dd/yyyy

2. Shows correctly in display (see image displaylinks.jpg)

3. Edit (see image edit.jpg) Shows in format: dd mmmm, yyyy. Submit without editing

4. Does NOT display correctly (see image display-after-edit.jpg) always shows 31 Dec, 1969 no matter what the submitted date was.

5. Go back into edit (see image edit2.jpg)

It does not matter which date format is originally submitted - I have tried 31 Dec, 2007 , 31/12/2007 and 12/31/2007 All behave the same after editing, but upon edit I MUST put format 12/31/2007 otherwise when displaying it again shows the incorrect 31 Dec, 1969 date.

Interestingly although the bogus date has long expired the link does not hide or delete.

If you need further information then please be explicit (and polite!)


Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 6014
Posted 11/10/07 - 10:19 AM:
quote post
#8
If I enter as mm/dd/yyyy, it's not going to work since the format is ambiguous. So I think the basic problem here is that the expiry format defaults to that. I'll set a custom format.

upon edit I MUST put format 12/31/2007 otherwise when displaying it again shows the incorrect 31 Dec, 1969 date.

I'm just not seeing that, so I don't know what I can say. The only thing I can suggest is filling out the inspection form if 4.1.13 doesn't work for you.

(and polite!)

Sorry, problems I can't see get very frustrating.

"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
babrees
Expert
Avatar

Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 289
Total Posts: 933
Posted 11/10/07 - 09:55 PM:
quote post
#9
Paul wrote:
If I enter as mm/dd/yyyy, it's not going to work since the format is ambiguous. So I think the basic problem here is that the expiry format defaults to that. I'll set a custom format.

upon edit I MUST put format 12/31/2007 otherwise when displaying it again shows the incorrect 31 Dec, 1969 date.

I'm just not seeing that, so I don't know what I can say. The only thing I can suggest is filling out the inspection form if 4.1.13 doesn't work for you.

(and polite!)

Sorry, problems I can't see get very frustrating.


LOL! No prob Paul, I know how frustrating it can be. It is for me too <G> Just upgraded to my test site and I will check asap.


babrees
Expert
Avatar

Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 289
Total Posts: 933
Posted 11/10/07 - 10:26 PM:
quote post
#10
Well whatever you did did the trick - even the time works now nod

Now, just to be a real pain in the...

Whilst I want to input an end time along with the date, I do not want the actual time to show, just the date. This is because it is the server time which is not "our" time and will thus confuse people.


Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 6014
Posted 11/11/07 - 12:02 PM:
quote post
#11
You can pass a custom date format to it - {LINKEXPIREDATE[%d %b %Y]}. The problem is that if only the date shows, the time gets recalculated to midnight upon edit. There's no way to tell the difference between a user request to change the time and an intentionally hidden time.

Edited by Paul on 11/11/07 - 12:05 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
babrees
Expert
Avatar

Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 289
Total Posts: 933
Posted 11/11/07 - 11:20 PM:
quote post
#12
Paul wrote:
You can pass a custom date format to it - {LINKEXPIREDATE[%d %b %Y]}. The problem is that if only the date shows, the time gets recalculated to midnight upon edit. There's no way to tell the difference between a user request to change the time and an intentionally hidden time.


hmm, bummer.

Is there anyway to fiddle it so that I can have, perhaps, another field and an IF statement to say if {LINKEXPIREDATE} then fill THISFIELD = d% %b %Y ??
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 6014
Posted 11/13/07 - 05:38 PM:
quote post
#13
I don't see how that'd help.

The best thing to do probably is get it aligned to the time zone of the submitter.

"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
babrees
Expert
Avatar

Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 289
Total Posts: 933
Posted 11/13/07 - 08:28 PM:
quote post
#14
Paul wrote:

The best thing to do probably is get it aligned to the time zone of the submitter.




That would be great - how do I do it please?
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 6014
Posted 11/14/07 - 12:17 AM:
quote post
#15
You can't, I'll have to. I'm not rushing it through right now because things always break horribly when I touch timezones.

"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

Page: 1 2



You don't have permission to post.

Please login or register.

   
 
© 2008 Paul Knierim. All rights reserved.