bencomeau / UserTimezone by bencomeau

A simple solution for converting Laravel's default dates attributes to a user's set timezone, for 5.2+
6
1
0
Package Data
Maintainer Username: bencomeau
Maintainer Contact: contact@bencomeau.com (Ben Comeau)
Package Create Date: 2016-10-13
Package Last Update: 2016-10-14
Home Page:
Language: PHP
License: MIT
Last Refreshed: 2024-05-03 03:10:52
Package Statistics
Total Downloads: 6
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 1
Total Watchers: 0
Total Forks: 0
Total Open Issues: 0

UserTimezone for Laravel 5.2+

Instead of manually writing mutators or making app-wide timezone changes, this package allows one to set a user-based timezone.

It will automatically convert dates using Laravel's "dates" column without the need to write custom mutators for each attribute.

Installation

Usage