I use Zend_Date to manage dates / times in a scheduling application.
The only way I can define a custom timezone is to use Javascript, which only gives the timezone offset. It seems that Zend_Date uses Timezones in the format "America / New_York".
Is there a way to get the time zone of users in this format or set the time zone offset using Zend_Date?
Thank!
Nikki
Zend_Date, PHP- DateTime DateTimeZone ; , , Zend_Date.
.
, . , , .
javascript cookie .
php , offset
$timezones = array ( '-1' => 'adfas/adsfafsd', '-2' => 'adsfasdf/asdfasdf' ... ); $date->setTimezone( $timezones[$_COOKIE['tz_offset']] );
timezone_name_from_abbr:
$javascript_offset = '-1'; $zone = timezone_name_from_abbr('', $javascript_offset * 3600, 0);
DST. .
Source: https://habr.com/ru/post/1744583/More articles:Printf field width: bytes or characters? - cpython: way to get an exhaustive, sorted list of keys in a nested dictionary? - pythonDifferences b / w that condition JOIN clause versus WHERE clause - sqlDictionary initialization in C # 3.0 - c #ΠΠ΅Π²ΠΎΠ·ΠΌΠΎΠΆΠ½ΠΎ ΠΏΠΎΠ»ΡΡΠΈΡΡ Π½Π΅ΡΠΊΠΎΠ»ΡΠΊΠΎ ΠΏΠ°Π½Π΅Π»ΡΠ½ΡΡ Π³ΡΠ°ΡΠΈΠΊΠΎΠ² Ρ ΡΡΠ½ΠΊΡΠΈΠ΅ΠΉ chartSeries ΠΈΠ· ΠΏΠ°ΠΊΠ΅ΡΠ° ΠΊΠ²Π°Π½ΡΠΎΠ² Π² R - rΠΠ°ΠΏΠΈΡΠ°Π½ΠΈΠ΅ Π±Π»ΠΎΠΊΠ° catch Ρ ΠΎΠΏΠ΅ΡΠ°ΡΠΈΡΠΌΠΈ ΠΎΡΠΈΡΡΠΊΠΈ Π² Java - javais there any way to see what code is executed when the method is called back? - phpHow to install Img-scr from a server that is not live but connected to a Live server - authenticationΠΠ°ΠΊ ΡΠ·Π½Π°ΡΡ, ΠΊΠΎΠ³Π΄Π° ΠΌΠΎΠΉ ΠΊΠΎΠ½ΡΡΠΎΠ»Ρ ΠΈΠ·ΠΌΠ΅Π½ΡΠ΅Ρ ΡΠ°Π·ΠΌΠ΅Ρ? - delphiShould I store #wrapper {width: 100%} in print css? - cssAll Articles