Fixes for timezone offsets
This commit is contained in:
parent
73e0c79a4e
commit
3954ac3f3a
1 changed files with 4 additions and 1 deletions
|
|
@ -698,6 +698,8 @@ class Client extends BaseModel implements HasLocalePreference
|
|||
|
||||
public function timezone_offset()
|
||||
{
|
||||
$offset = 0;
|
||||
|
||||
$entity_send_time = $this->getSetting('entity_send_time');
|
||||
|
||||
if($entity_send_time == 0)
|
||||
|
|
@ -705,7 +707,8 @@ class Client extends BaseModel implements HasLocalePreference
|
|||
|
||||
$timezone = $this->company->timezone();
|
||||
|
||||
$offset = $timezone->utc_offset + ($entity_send_time * 3600);
|
||||
$offset -= $timezone->utc_offset;
|
||||
$offset += ($entity_send_time * 3600);
|
||||
|
||||
return $offset;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue