Support Forums

Date problems

This is a discussion on Date problems within the Customizations forums, part of the Developer Forums category; Originally Posted by Eric Barnes Look in the database and double check that the date value is actually something other ...


Go Back   68 Classifieds Forums > Developer Forums > Customizations

Reply
 
Thread Tools Display Modes
Old 12-02-2009, 03:27 AM   #11
Senior Member
 
Join Date: Dec 2006
Posts: 104
Rep Power: 22
objelland is on a distinguished road
Default

Quote:
Originally Posted by Eric Barnes
Look in the database and double check that the date value is actually something other than the really old one.

Next try to just echo it without having it run through this code:
Code:
$origDate = explode("-", $rs['expiration']);
$expiration= mktime(0,0,0,$origDate[1],$origDate[2],$origDate[0]);
$expiration = strftime("%Y-%m-%d",$expiration);
Hi,

Thank you very much for your respond.
I figured out what caused the strange result. I was asking for the ID field in my query instead of OWNER. My stupid mistake.
Thanks anyway!

Kind regards,
Oyvind
__________________
objelland
V3.1.5b Developer
objelland is offline   Reply With Quote
Old 12-03-2009, 06:27 PM   #12
Customer
 
MrGForce's Avatar
 
Join Date: May 2009
Posts: 241
Rep Power: 14
MrGForce is on a distinguished road
Default

ERIC ..... THANK YOU THANK YOU THANK YOU. You have always been there with the answers.

You have given me exactly what I was looking for over the last couple months to change the dateadded field. I've applied your additions to the Listings.php file and now my edited and renewed listings get the current date and time and then show up at the top of the listings again, just the way I wanted them to, and just like this post does.

The code I am speaking about you actually gave in a recent post that had just been closed, so I couldn't respond to it there, but wanted you to know that you helped.

This is the closed post ....

Date Renewal = Date Added

Thanks again for your great support. It's very much appreciated.

Rich



.
__________________
MrGForce

Currently running 68Classifieds v4.1.5 Developer Edition ... Purple Template

Last edited by MrGForce; 12-03-2009 at 06:54 PM.
MrGForce is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Date Renewal = Date Added pipelin Technical Support 10 10-29-2009 11:18 AM
PM Date wabugi Technical Support 14 04-21-2009 04:36 PM
Date Added and Expiration Date suav Technical Support 2 09-10-2008 12:48 AM
Expiration Date goose Technical Support 2 01-01-2008 02:27 PM


All times are GMT -4. The time now is 09:32 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2011, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0