[PR #853] [CLOSED] Attempt at fixing microsecond timezone support, fixes #832 #1381

Closed
opened 2026-03-04 03:11:27 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Seldaek/monolog/pull/853
Author: @Seldaek
Created: 9/18/2016
Status: Closed

Base: masterHead: datetimetzfix


📝 Commits (1)

  • 400c580 Attempt at fixing microsecond timezone support, fixes #832

📊 Changes

2 files changed (+58 additions, -0 deletions)

View changed files

📝 src/Monolog/DateTimeImmutable.php (+8 -0)
📝 tests/Monolog/LoggerTest.php (+50 -0)

📄 Description

Refs #832

This fixes the TimeZone support when the default timezone is UTC, but fails when it isn't, as date() returns the time using the current timezone, and as far as I understand the offset is not calculated correctly then.. Not sure what to do at this point.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Seldaek/monolog/pull/853 **Author:** [@Seldaek](https://github.com/Seldaek) **Created:** 9/18/2016 **Status:** ❌ Closed **Base:** `master` ← **Head:** `datetimetzfix` --- ### 📝 Commits (1) - [`400c580`](https://github.com/Seldaek/monolog/commit/400c580d41e27d1c31c6d809c01e5390b29f930e) Attempt at fixing microsecond timezone support, fixes #832 ### 📊 Changes **2 files changed** (+58 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/Monolog/DateTimeImmutable.php` (+8 -0) 📝 `tests/Monolog/LoggerTest.php` (+50 -0) </details> ### 📄 Description Refs #832 This fixes the TimeZone support when the default timezone is UTC, but fails when it isn't, as `date()` returns the time using the current timezone, and as far as I understand the offset is not calculated correctly then.. Not sure what to do at this point. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-04 03:11:27 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/monolog#1381
No description provided.