php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #68994 Pacific/Samoa 1 hour behind
Submitted: 2015-02-05 17:45 UTC Modified: 2020-12-20 04:22 UTC
Votes:1
Avg. Score:1.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: stoyanovski dot development at gmail dot com Assigned: cmb (profile)
Status: No Feedback Package: timezonedb (PECL)
PHP Version: 5.4.37 OS: CentOS
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
19 - 5 = ?
Subscribe to this entry?

 
 [2015-02-05 17:45 UTC] stoyanovski dot development at gmail dot com
Description:
------------
Updated PECL timezonedb to 2015.1

Issue is Pacific/Samoa is 1 hour behind.

Samoa does not use daylight savings, this may be the cause.

Test script:
---------------
<?php
    date_default_timezone_set('Pacific/Samoa');
?>
?>
<html>
  <head>
    <title>TimeZones!</title>
  </head>
  <body>
    <h1><?=date('g:i A', time())?></h1>
    <h3><?=date('l, F j, Y', time())?></h3>
    <h3>Timezone: <?=date_default_timezone_get()?></h3>
  </body>
</html>

Expected result:
----------------
GMT + 14:00

Actual result:
--------------
GMT + 13:00

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-02-16 15:04 UTC] alex at gentle dot ro
This was not applied ? http://www.timeanddate.com/news/time/samoa-dst-plan-2009.html
 [2020-12-09 14:17 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2020-12-09 14:17 UTC] cmb@php.net
Is this still the case for latest timezonedb?
 [2020-12-20 04:22 UTC] pecl-dev at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 14:01:30 2024 UTC