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
 [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: Sat Dec 21 12:01:31 2024 UTC