Welcome, Guest
Username: Password: Remember me

TOPIC: [FAQ] CREATION DATE / MODIFICATION DATE with TIME

CREATION DATE / MODIFICATION DATE with TIME 31 Jan 2013 07:53 #6580

  • Tomaselli
  • Tomaselli's Avatar
  • Offline
  • Elite Member
  • Posts: 293
  • Thank you received: 87
  • Karma: 46
I think it's very useful create the creation date and modification date field, with the hours, minutes, seconds as well.
Many times it's needed to have those values in components.

This change just need few modifications in the output fo the jcook builder, because the data could be easily stored into the DB and retrieved from, in the correct format, just changing the type of database field, and few lines of code in the output layout.
The administrator has disabled public write access.

Re: Bug on the CREATION DATE / MODIFICATION DATE?! 31 Jan 2013 07:58 #6581

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
  • Karma: 64
Why not use a datetime field in the creation date wizard?

Gez
Need help with your Cook/Joomla Project? . PM me to find out what I can help with. NO time wasters please!!!
The administrator has disabled public write access.

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

  • Tomaselli
  • Tomaselli's Avatar
  • Offline
  • Elite Member
  • Posts: 293
  • Thank you received: 87
  • Karma: 46
Because then I have to add more code to make to check if the item is new or old, and automatically store the time().
The administrator has disabled public write access.

Re: Bug on the CREATION DATE / MODIFICATION DATE?! 31 Jan 2013 21:25 #6602

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
  • Karma: 64
Tomaselli wrote:
Because then I have to add more code to make to check if the item is new or old, and automatically store the time().
Have you been using the wizards? If you don't auto create the created and modified date fields, add the relevant datetime fields and name them as per auto generated field names.

Then, connect these 2 datetime fields to the wizard and re add the fields to your layouts.

Gez
Need help with your Cook/Joomla Project? . PM me to find out what I can help with. NO time wasters please!!!
Last Edit: 31 Jan 2013 21:27 by JoomGuy.
The administrator has disabled public write access.
The following user(s) said Thank You: Tomaselli

Re: Bug on the CREATION DATE / MODIFICATION DATE?! 03 Feb 2013 05:00 #6613

  • Tomaselli
  • Tomaselli's Avatar
  • Offline
  • Elite Member
  • Posts: 293
  • Thank you received: 87
  • Karma: 46
Thanks I found "the way".
I used the wizard but autogenerating the field. Now I manually created the datetime table field and then I linked to the wizard.
The administrator has disabled public write access.
Time to create page: 0.103 seconds

Get Started