Copyright © <?php ini_set(‘date.timezone’, ‘America/New_York’); echo date(‘Y’); ?>
i tried that b4 posting.. i get this
you need to make a snippet out of the php code first, then place it in your footer/chunk
« MODx Parse Error »
MODx encountered the following error while attempting to parse the requested resource:
« PHP Parse Error »
PHP error debug
Error: Division by zero
Error type/ Nr.: Warning - 2
File: /home/site/public_html/manager/includes/document.parser.class.inc.php(770) : eval()’d code
Line: 1
Parser timing
MySQL: 0.0039 s (1 Requests)
PHP: 0.0336 s
Total: 0.0375 s
ini_set('date.timezone', 'America/Los_Angeles');<?php
return date("F j, Y, g:i a");
?>ini_set(‘date.timezone’, ‘America/New_York’); echo date(‘Y’);
ini_set('date.timezone', 'America/New_York'); echo date('Y');
ini_set(‘date.timezone’, ‘America/New_York’); echo date(‘Y’);
should be :
ini_set('date.timezone', 'America/New_York'); echo date('Y');
‘ -> ’
*edit: okay, you probably don’t need the plugin
got it workin!