assistenzde/database-timezone 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

assistenzde/database-timezone

Composer 安装命令:

composer require assistenzde/database-timezone

包简介

Unified database time zone values

README 文档

README

Latest Stable Version Total Downloads License PHP ≥v7.4 Symfony ≥5

The Database Timezone bundle contains method to save dates and datetimes values/objects always in the same (custom) timezone in database. This results in an easier datetime/date handling when accessing database values directly or via PHP.

Quick example usage:

Always save dates/times in UTC timezone in database. Change the configuration of /config/packages/database_timezone.yaml to:

database_timezone:
  database: UTC

Table of Contents

Requirements

The usage of PHP ≥ v7.4 and Symfony ≥ 5 is recommended.

Installation

Please install via composer.

composer require assistenzde/database-timezone

The bundle will be automatically added to your bundles.yaml configuration.

Symfony Configuration

Please add a database_timezone.yaml file in your configuration directory (i.e. /config/pakcages/) and spcify the timezone to save all datatime values in the database.

database_timezone:
  database: UTC

Usage

All database values will be saved in the configured timezone.

统计信息

  • 总下载量: 60
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: mit
  • 更新时间: 2020-11-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固