Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Wrong timezone handling #1

Description

@thomas-0816

Central European Summer Time (CEST) is 2 hours.

index.php

<?php

date_default_timezone_set('Europe/Berlin');

echo date('c'), PHP_EOL;
echo new DateTime('now', new DateTimeZone('Europe/Berlin'))->format('c'), PHP_EOL;

Actual:

target/release/phrust-php ~/Downloads/phrust/index.php 
2026-07-06T19:24:52+01:00
2026-07-06T19:24:52+01:00

Expected:

php ~/Downloads/phrust/index.php
2026-07-06T20:24:52+02:00
2026-07-06T20:24:52+02:00

Now: Central European Summer Time (CEST) is UTC+2
Winter: Central European Time (CET) is UTC+1

compiled at git log -1

commit dc3a22b8291745a6b4bee430196a8df697677805
Date:   Mon Jul 6 20:18:58 2026 +0200
fix(vm): cache dense class static fetches

system:

Ubuntu 24.04.4 LTS

rustc --version --verbose
rustc 1.96.0 (ac68faa20 2026-05-25)
binary: rustc
commit-hash: ac68faa20c58cbccd01ee7208bf3b6e93a7d7f96
commit-date: 2026-05-25
host: x86_64-unknown-linux-gnu
release: 1.96.0
LLVM version: 22.1.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions