Store datetime in UTC format now, and fix presentation of TZUTC. Also standardise message summaries on Notifications
This commit is contained in:
@@ -59,9 +59,15 @@ trait MessageAttributes
|
||||
return ($this->msg_src) ? $this->msg_src : $this->rebuildMessage();
|
||||
}
|
||||
|
||||
/**
|
||||
* This is used to build our data in a timezone date, so that when exported, we include the right TZUTC
|
||||
*
|
||||
* @return Carbon
|
||||
*/
|
||||
public function getDateAttribute(): Carbon
|
||||
{
|
||||
return $this->datetime->utcOffset($this->tzoffset);
|
||||
// Datetime is in utc, and tzoffset describes what that local time is
|
||||
return $this->datetime->clone()->utcOffset($this->tzoffset);
|
||||
}
|
||||
|
||||
public function getOriginAttribute(string $val=NULL): ?string
|
||||
|
Reference in New Issue
Block a user