Webmastersite.net
Register Log In

Expired links, when removed?

Comments on Expired links, when removed?

babrees
Expert

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

Total Topics: 391
Total Comments: 1303
babrees
Posted Oct 31, 2007 - 2:38 AM:

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
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Oct 31, 2007 - 6:58 AM:

If you don't specify a time, 12:00am is assumed. There's no timezone conversion so it'd be the server time.
babrees
Expert

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

Total Topics: 391
Total Comments: 1303
babrees
Posted Oct 31, 2007 - 7:36 AM:

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
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Nov 01, 2007 - 2:35 PM:

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.
babrees
Expert

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

Total Topics: 391
Total Comments: 1303
babrees
Posted Nov 05, 2007 - 8:41 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. 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
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Nov 09, 2007 - 1:17 PM:

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.
babrees
Expert

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

Total Topics: 391
Total Comments: 1303
babrees
Posted Nov 09, 2007 - 10:58 PM:

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!)



Attached Files:
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Nov 10, 2007 - 10:19 AM:

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.
babrees
Expert

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

Total Topics: 391
Total Comments: 1303
babrees
Posted Nov 10, 2007 - 9:55 PM:

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

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

Total Topics: 391
Total Comments: 1303
babrees
#10 - Quote - Permalink
Posted Nov 10, 2007 - 10:26 PM:

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
developer

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

Total Topics: 61
Total Comments: 7868
Paul
#11 - Quote - Permalink
Posted Nov 11, 2007 - 12:02 PM:

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.
babrees
Expert

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

Total Topics: 391
Total Comments: 1303
babrees
#12 - Quote - Permalink
Posted Nov 11, 2007 - 11:20 PM:

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
developer

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

Total Topics: 61
Total Comments: 7868
Paul
#13 - Quote - Permalink
Posted Nov 13, 2007 - 5:38 PM:

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.
babrees
Expert

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

Total Topics: 391
Total Comments: 1303
babrees
#14 - Quote - Permalink
Posted Nov 13, 2007 - 8:28 PM:

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
developer

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

Total Topics: 61
Total Comments: 7868
Paul
#15 - Quote - Permalink
Posted Nov 14, 2007 - 12:17 AM:

You can't, I'll have to. I'm not rushing it through right now because things always break horribly when I touch timezones.
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.