how is the best way to save dates in GMT, also im not sure how to use AkTimeZone ( if i make the dates be saved in GMT ) in fact i have never handled timezones before, does akelos do it globally?? i have to converted them always before saving and updating???. some guide would be very much apreciatted.
after reading and thinking a lot i think im getting it. Here is what i got:
class ApplicationController extends AkActionController
{
var $my_timezone;
function __construct(){
$_AkCurrentZone = new AkTimeZone();
$this->my_timezone =& $_AkCurrentZone->create('MyZone','2000');
}
}
class ProductController extends ApplicationController{
function listing(){
echo $this->my_timezone->now();
}
}
now that echo doesnt print anything, isnt not supposed to be inherited?
Akelos does not deal with timezones globally.
It just provides functionality for calculation time zone offsets.
You might find the TimeZone unit tests useful.
1 to 3 of 3