app/Device.php 1 location
|
@@ 230-236 (lines=7) @@
|
| 227 |
|
* |
| 228 |
|
* @return string |
| 229 |
|
*/ |
| 230 |
|
public function getUpdatedAtHumanAttribute() |
| 231 |
|
{ |
| 232 |
|
if ($this->updated_at->diffInDays() > 0) |
| 233 |
|
return $this->updated_at->setTimezone(Auth::user()->timezone)->format('M d, Y h:i a'); |
| 234 |
|
else |
| 235 |
|
return $this->updated_at->diffForHumans(); |
| 236 |
|
} |
| 237 |
|
|
| 238 |
|
/** |
| 239 |
|
* Accessor: Get the devices creation time in seconds/minutes/hours since creation or converted to user friendly |
app/Location.php 1 location
|
@@ 90-96 (lines=7) @@
|
| 87 |
|
* |
| 88 |
|
* @return string |
| 89 |
|
*/ |
| 90 |
|
public function getUpdatedAtHumanAttribute() |
| 91 |
|
{ |
| 92 |
|
if ($this->updated_at->diffInDays() > 0) |
| 93 |
|
return $this->updated_at->setTimezone(Auth::user()->timezone)->format('M d, Y h:i a'); |
| 94 |
|
else |
| 95 |
|
return $this->updated_at->diffForHumans(); |
| 96 |
|
} |
| 97 |
|
|
| 98 |
|
/** |
| 99 |
|
* Accessor: Get the location's creation time in seconds/minutes/hours since update or converted to user |
app/Sensor.php 1 location
|
@@ 146-152 (lines=7) @@
|
| 143 |
|
* |
| 144 |
|
* @return string |
| 145 |
|
*/ |
| 146 |
|
public function getUpdatedAtHumanAttribute() |
| 147 |
|
{ |
| 148 |
|
if ($this->updated_at->diffInDays() > 0) |
| 149 |
|
return $this->updated_at->setTimezone(Auth::user()->timezone)->format('M d, Y h:i a'); |
| 150 |
|
else |
| 151 |
|
return $this->updated_at->diffForHumans(); |
| 152 |
|
} |
| 153 |
|
|
| 154 |
|
/** |
| 155 |
|
* Accessor: Get the sensor's creation time in seconds/minutes/hours since update or converted to user |
app/SensorData.php 1 location
|
@@ 68-74 (lines=7) @@
|
| 65 |
|
* |
| 66 |
|
* @return string |
| 67 |
|
*/ |
| 68 |
|
public function getUpdatedAtHumanAttribute() |
| 69 |
|
{ |
| 70 |
|
if ($this->updated_at->diffInDays() > 0) |
| 71 |
|
return $this->updated_at->setTimezone(Auth::user()->timezone)->format('M d, Y h:i a'); |
| 72 |
|
else |
| 73 |
|
return $this->updated_at->diffForHumans(); |
| 74 |
|
} |
| 75 |
|
|
| 76 |
|
/** |
| 77 |
|
* Accessor: Get the sensor data's creation time in seconds/minutes/hours since update or converted to user |
app/Site.php 1 location
|
@@ 78-84 (lines=7) @@
|
| 75 |
|
* |
| 76 |
|
* @return string |
| 77 |
|
*/ |
| 78 |
|
public function getUpdatedAtHumanAttribute() |
| 79 |
|
{ |
| 80 |
|
if ($this->updated_at->diffInDays() > 0) |
| 81 |
|
return $this->updated_at->setTimezone(Auth::user()->timezone)->format('M d, Y h:i a'); |
| 82 |
|
else |
| 83 |
|
return $this->updated_at->diffForHumans(); |
| 84 |
|
} |
| 85 |
|
|
| 86 |
|
/** |
| 87 |
|
* Accessor: Get the site's creation time in seconds/minutes/hours since update or converted to user |
app/User.php 1 location
|
@@ 165-171 (lines=7) @@
|
| 162 |
|
* |
| 163 |
|
* @return string |
| 164 |
|
*/ |
| 165 |
|
public function getUpdatedAtHumanAttribute() |
| 166 |
|
{ |
| 167 |
|
if ($this->updated_at->diffInDays() > 0) |
| 168 |
|
return $this->updated_at->setTimezone($this->timezone)->format('M d, Y h:i a'); |
| 169 |
|
else |
| 170 |
|
return $this->updated_at->diffForHumans(); |
| 171 |
|
} |
| 172 |
|
|
| 173 |
|
/** |
| 174 |
|
* Accessor: Get the user's creation time in seconds/minutes/hours since update or converted to user |