Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Bug on the CREATION DATE / MODIFICATION DATE?! 31 Jan 2013 07:39 #6578

If I select UNIX time, in the option of the field, the FORMAT data is stored correctly into the DB, BUT the value is WRONG.

the following code (in the model or table, it depends by the config of your component in the jcook builder):
			// New item.
			if (!intval($this->creation_date))
				$this->creation_date = $date->toSql();

and
			// Existing item
			$this->modification_date = $date->toSql();

should be simply replaced with:
			// New item.
			if (!intval($this->creation_date))
				$this->creation_date = time();

and
			// Existing item
			$this->modification_date = time();

Please Log in or Create an account to join the conversation.

Re: Bug on the CREATION DATE / MODIFICATION DATE?! 31 Jan 2013 08:19 #6582

Because then I have to add more code to make it to check if the item is new or old, etc. etc.

But I guess you are replying here to my other post :huh: :

CREATION DATE / MODIFICATION DATE with TIME

Because on this post I'm just saying that if I select an option on the builder, the feature is not working.

Please Log in or Create an account to join the conversation.

Re: Bug on the CREATION DATE / MODIFICATION DATE?! 31 Jan 2013 08:45 #6583

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
Sorry @Tomaselli,

you are correct, I was replying to the other topic, not this one...

Post moved!

G
Need help with your Cook/Joomla Project? . PM me to find out what I can help with. NO time wasters please!!!

Please Log in or Create an account to join the conversation.

Re: Bug on the CREATION DATE / MODIFICATION DATE?! 07 Aug 2013 16:42 #10713

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Fixed now.

There was still an issue with unix dates.
Coding is now a piece of cake
The following user(s) said Thank You: Tomaselli

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.121 seconds

Just wanted to congratulate you on the J-Cook website / web development tool. In a couple of visits I've had a play around with Cook and have to say I think it is fantastic.  I've played with a number of component builders in the past and yours is certainly looking like the best so far. I'd also like to help you spread the word - I'm really surprised more people aren't excited about this tool. Good luck with the project.
Dean

Get Started