|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14863 When using the gmDate() function, the time/date is 8 hours ahead
Submitted: 2002-01-04 20:10 UTC Modified: 2002-01-05 11:32 UTC
Avg. Score:1.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: bryannisperos at hotmail dot com Assigned:
Status: Not a bug Package: Date/time related
PHP Version: 4.1.1 OS: Win2k Pro
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 !
Your email address:
Solve the problem:
17 + 2 = ?
Subscribe to this entry?

 [2002-01-04 20:10 UTC] bryannisperos at hotmail dot com
When using the gmDate() function, the time/date is 8 hours ahead of the system clock.

The date is <?php echo gmDate("l, M d Y, h i a"); ?>

The date is Saturday, Jan 05 2002, 01 06 am

Should have been:
The date is Friday, Jan 04 2002, 05 06 pm


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-01-05 11:32 UTC]
Ofcouurse it does. I expect that your timezone differs 8 houurs from GMT. And gmdate shows the time in GMT.

Not a bug,
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sat Sep 26 21:01:23 2020 UTC