php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15379 unixtojd() doesn't return the correct date.
Submitted: 2002-02-05 01:02 UTC Modified: 2002-04-18 14:07 UTC
From: ncb999 at NOSPAMhotmail dot com Assigned:
Status: Not a bug Package: Calendar related
PHP Version: 4.1.1 OS: WinXP
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ncb999 at NOSPAMhotmail dot com
New email:
PHP Version: OS:

 

 [2002-02-05 01:02 UTC] ncb999 at NOSPAMhotmail dot com
unixtojd() is supposed to return today's date when it is invoked without a parameter. When I tested this function on 2/4/2002, it returned 1/22/2002. My system clock was set correctly, i.e. the actual system date was 2/4/2002.

I'm using PHP version 4.1.1 on WinXP.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-18 14:07 UTC] jimw@php.net
without an example to reproduce the issue, my best guess is that you are using jdtojulian() to test, which would explain a 12-13 day difference. we're currently operating under the gregorian calendar.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Oct 04 09:01:27 2024 UTC