• How to set timezone in Codeigniter?

    Two options for adding timezone in codeigniter. I tried with both and both is working fine for whole project.
    • add it in your main index.php file.
    • place it in your config file like this(After defined('BASEPATH') Line).
      defined('BASEPATH') OR exit('No direct script access allowed');
      
      date_default_timezone_set('Asia/Kolkata');
  • 0 comments:

    Post a Comment

    FAVOURITE LINE

    To steal ideas from one is plagiarism. To steal from many is Research.

    ADDRESS

    Mumbai , Maharashtra

    EMAIL

    shikha.pathak6@gmail.com
    shikha.the.swt.pari@gmail.com

    Skype

    shikha_pari