Jump to content

Krishna_ramisetty

New Members
  • Posts

    4
  • Joined

  • Last visited

Posts posted by Krishna_ramisetty

  1. 4 hours ago, maxxd said:

    Legit question - does https://www.php.net/manual/en/datetime.gettimezone.php not handle that?

    Hi, 

    here i am getting the time zone name as well. but in timezone_name_from_abbr() what is 19800, 0 and how to calculate it?
        $time = '2021-05-06T19:48:19.2064951+05:30';    
        $dt = new DateTime($time);    
        error_log($dt->getTimezone()->getName());
        error_log(timezone_name_from_abbr("", 19800, 0));

  2. Hello Everyone,

    I am on windows server and In my ini file server time zone declared as below

    [server_settings]
    date.timezone = "Europe/London"

    but my application installed on another timezone eg: 'America/Los_Angeles' time zone.

    using date_default_timezone_get() i am always getting Europe/London timezone as it's declared in ini file. How to get local timezone(wherever application is installed) here?

    Thanks Krish

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.