mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixes for timezone offsets
This commit is contained in:
parent
73e0c79a4e
commit
3954ac3f3a
@ -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…
x
Reference in New Issue
Block a user