PDA

View Full Version : strtotime confirm


hm2k
06-02-2010, 10:34 AM
Please confirm this bug...

<?php

echo date('d-M-Y',strtotime('2009/07/14'));
//expected 14-Jul-2009, gave 07-May-2014

echo date('d-M-Y',strtotime('14-Aug-2009'));
//expected 14-Aug-2009, gave 30-Jan-2016

?>

hm2k
06-04-2010, 08:20 AM
I raised a bug report while I waiting for my post to reach the forum:

http://bugs.caucho.com/view.php?id=4064

sblommers
06-04-2010, 08:53 AM
Perfect. It's fixed tough for 4.0.8. Just grab the latest from SVN, build using ant and you are good to go, this way you can also debug on the latest source, .. might come in handy if you are ready to fix some yourself :D

Best of luck,
Sebastiaan

hm2k
06-04-2010, 09:54 AM
I may just do that.

I'm a complete Java noob though, I did a little a long while back... Any advice to get me started on building from the SVN?

Meanwhile, I found another bug...

$date=strtotime('1149585733 +5 days'); var_dump($date); //should return bool(false);

See http://codepad.org/VRonU0IN

sblommers
06-04-2010, 01:04 PM
Hi, I can confirm that strtotime with that format is broken for even latest SVN, I might just get some time to fix that one when I have the time. I'll add a bug report for it too. See http://bugs.caucho.com/view.php?id=4070

Build from SVN

1) Get subversion
2) Get ant
3) Get Java (JDK)
4) Pull from SVN on command line using svn checkout svn://svn.caucho.com/resin/trunk
5) run ant compile
6) get lib/resin-kernel.jar and lib/quercus.jar

Are you familiar with maven?

Best of luck!
Sebastiaan

sblommers
06-04-2010, 01:22 PM
Sorry about this but this bug is *NOT* fixed, I was confused with another bug sorry. DateTime was not working at all in 4.0.6-

I reported it not working in the bug-tracker.

hm2k
06-06-2010, 11:01 AM
Fantastic.

I'll probably give ant a go later in the week.

Meanwhile, thanks for testing and confirming the strtotime issues.

achinaseller
08-16-2010, 02:38 AM
hi,friends,i am a young man who want to create myself bussiness in France,i want to wholesale some high quality,low prices products to sell,and i know China goods are very cheap.so i search china electronics wholesale (http://www.achinaseller.com/) seller in google,i have looked many wholesale website,but i found a web ,it have Charming picture and Attractive prices,i want to select it,its web address is china wholesale (http://www.achinaseller.com) web. and the casio original watches such as g shock (http://www.achinaseller.com/jewelry.asp?/Casio-G-SHOCK-G-315RL-2AV.htm)watches, it have the Casio watches offical authorized proof,I want wholesale,please give me suggestion,thank you very muchbest regardsjack