Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

JDate::toFormat() Doesn't work? 02 Jul 2013 13:02 #7799

  • rnevins
  • rnevins's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 24
  • Thank you received: 6
I'm not sure but I may have stumbled upon a bug. I found that my component was failing upon trying to execute this line: (in dom/html/form/input/clock.php)

$date = new JDate($this->dataValue);
$this->dataValue = $date->toFormat($this->timeFormat);

Elsewhere I saw where there are comments that JDate::toFormat is deprecated.

I copied the clock.php to the fork directory and changed it to:

$this->dataValue = $date->format($this->timeFormat);

and now it seems to work.

Rick
The following user(s) said Thank You: admin

Please Log in or Create an account to join the conversation.

JDate::toFormat() Doesn't work? 02 Jul 2013 15:10 #7800

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Yes absolutly.
I will fix it.
Coding is now a piece of cake
The following user(s) said Thank You: rnevins

Please Log in or Create an account to join the conversation.

JDate::toFormat() Doesn't work? 03 Jul 2013 22:28 #7837

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Coding is now a piece of cake

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.078 seconds

Freakin' Awesome!!! J-Cook is simply awesome - whether you're a highly experienced developer or complete novice whether you're building a small inventory component or a complete community solution! The beauty comes from a fast slick and reliable platform that readily provides developers with everything they'll need to build the backbone of a solid and secure component with wizards for authoring access publishing aliasing created/modified by dates... you name it COOK provides it! J-Cook really surpasses all of the 'competition' as far as MVC tools are concerned! Try love it and get cooking!
learnthrusong (JED)
          

Get Started