[Project_owners] Woops, getting an unexpected time from PHP?!?

Douglas E. Warner silfreed at silfreed.net
Thu Aug 23 16:30:03 PDT 2007


On Thursday 23 August 2007, Michael Vincent van Rantwijk, MultiZilla wrote:
> $now = date(time());
> $pubDate = date("D, d M Y h:i:s O", $now);
>
> And it returned: "Thu, 23 Aug 2007 03:36:00 -0700" but shouldn't that
> have been "Thu, 23 Aug 2007 15:36:00 -0700" instead, like before?

You'll want a capital 'H' for hour in 24-hour format.

-Doug
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://mozdev.org/pipermail/project_owners/attachments/20070823/3a424737/attachment.bin 


More information about the Project_owners mailing list