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.082 seconds

Amazing Tool !
And only tool I know that allows complete Scaffolding in terms of component creation. It really saves loads of time (actually much more than that). Simple architecture enables quick and painless changes at any time. Code is clean and consintent. It's just... what's the word... neat! :) Great work! You should definetely try this one!

pi_wo (JED)
         

Get Started