|  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 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:
2 + 30 = ?
Subscribe to this entry?

 [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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-18 14:07 UTC]
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-2023 The PHP Group
All rights reserved.
Last updated: Fri Dec 01 03:01:29 2023 UTC