Einzelnen Beitrag anzeigen
Alt 17.04.2012, 16:20   #1
JensL
Administrator
Site Admin
 
Registriert seit: 02.03.2010
Beiträge: 2.470
JensL befindet sich auf einem aufstrebenden Ast
Display the current time and date into my survey e.g. in the footer
With a few easy steps it is possible to implement the actual time and date.
Instructions
  • Please open the layout editor
  • click on “Pro Editor” in the menu on the left
  • Find the main.tpl, open it and go to
    Code:
    {* ################ Bottom space ################ *}
  • Implement the following string:

    Code:
    {$smarty.now|date_format:"%H:%M:%S"}

If you want to use the date in the survey by storing it within a variable, you have to alter this method by a bit:

Set up a recoding trigger with the following function:

Code:
DATE_FORMAT(NOW(), '%T')
Additional functions can be found here:

http://dev.mysql.com/doc/refman/5.5/...functions.html

More specifiers can be found here:

http://dev.mysql.com/doc/refman/5.5/...on_date-format

Geändert von JensL (18.04.2012 um 10:29 Uhr).
JensL ist offline