Not signed in (Sign In)
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    • CommentAuthorinsanet
    • CommentTimeJul 10th 2008
     

    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.

    • CommentAuthorinsanet
    • CommentTimeJul 10th 2008
     

    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?

    •  
      CommentAuthorbermi
    • CommentTimeJul 15th 2008
     

    Akelos does not deal with timezones globally.

    It just provides functionality for calculation time zone offsets.

    You might find the TimeZone unit tests useful.

Add your comments
    Username Password
  • Format comments as