Register   Login
     
  Latest Posts  
RE: Lightbox not working on 2.04?
by smcculloch on 12/02/2008 12:20 AM
RE: Facebook-like Tagging People in Pictures...
by swebster on 12/02/2008 12:13 AM
Lightbox not working on 2.04?
by wallacea on 12/01/2008 11:45 PM
News Article css
by daviking on 12/01/2008 7:04 PM
RE: File Expiration Date
by jcochran on 12/01/2008 6:35 PM
RE: Set default value
by mariusm on 12/01/2008 6:29 PM
New Module - File Search
by jcochran on 12/01/2008 6:21 PM
RE: Display Name
by blob150 on 12/01/2008 3:07 PM
How to replicate the paging control at the top of the photos grid
by markjjordan on 12/01/2008 3:05 PM
RE: Ratings button appears to anonymous users
by smcculloch on 12/01/2008 2:40 PM
  Forums  
Subject: Expiry Time not getting saved correctly
Prev Next
You are not authorized to post a reply.

Author Messages
JeffUser is Offline
Gold Membership
Nuke Super Newbie
Nuke Super Newbie
Posts:21

10/02/2008 4:22 PM  

DNN 4.9, News Articles 07.05 (upgraded from 06.xx)

When I set the expiry time it is written to the database -8 hours (+1 minute) from what I enter.  The time zone setting in the articles module, DNN admin setup and user time zones are equal.  Pacific -8.

When I go back to look at the expiry time in the article, the expiry time is as I entered it with a small error.  The minutes are only showing the second digit if the first digit was 0.

  1. Enter expiry date/time of 10/2/2008 17:05
  2. Database entry for end time = 10/2/2008 09:06 
  3. View article settings and expiry time reads 10/2/08 17:5
  1. Enter expiry date/time of 10/2/2008 17:15
  2. Database entry for end time = 10/2/2008 09:16 
  3. View article settings and expiry time reads 10/2/08 17:15
ADDENDUM:  Now that I think it through this is likely exactly how the module should work.  However the issue is that the article is expiring according to the database time stamp and not to my localized time.

I have set the expiry time to 10/3/2008 01:00 to get it to expire at the desired time of 10/2/2008 17:00.

Thanks for all the hard work.

-Jeff

 

Scott McCullochUser is Offline
Administrators
Nuke Master
Nuke Master
Posts:12548


10/06/2008 6:51 AM  
Hmm, I've looked at the code:-

objArticle.EndDate = Common.GetAdjustedServerTime(ArticleSettings, ExpiryDate(objArticle.EndDate.Hour, objArticle.EndDate.Minute))

So it should get the expired date which is set to the same localized date as the expiry.

This doesn't work for you?

Scott McCulloch
Site Administrator
JeffUser is Offline
Gold Membership
Nuke Super Newbie
Nuke Super Newbie
Posts:21

10/06/2008 8:20 AM  
I've helped others enough to know, your reply alone fixed it!

I cannot reproduce the issue this morning. Thanks for your time.

-Jeff
You are not authorized to post a reply.
Forums > Modules > News Articles > Expiry Time not getting saved correctly



ActiveForums 3.7