I know it's a server/joomla feature and not a bug but I am storing a date via the user profiles and when I look in phpmyadmin the date stored is always one day behind BUT when I view the value in Joomla it is the correct date.
I need the correct value stored in the database far more than I do in the Joomla display.
How can I get Joomla to store the correct date as selected.
The following code works and outputs the date for the different offsets:
echo 'Australia/Sydney' . JFactory::getDate('now', 'Australia/Sydney');
echo "<BR>";
echo 'UTC' . JFactory::getDate('now', 'UTC');
echo "<BR>";
echo 'Asia/Jakarta ' . JFactory::getDate('now', 'Asia/Jakarta');
But this code
echo 'Australia/Sydney' . JFactory::getDate('today', 'Australia/Sydney');
echo "<BR>";
echo 'UTC' . JFactory::getDate('today', 'UTC');
echo "<BR>";
echo 'Asia/Jakarta ' . JFactory::getDate('today', 'Asia/Jakarta');
All gives me the same result : 2015-04-29 00:00:00
How can I get joomla to give me a date with the correct timezone offset please?