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

I'm playing around with the new mvc and the FORK feature is FANTASTIC!!! it's saving me a lot of time! you are doing a very good job!!

Tomaselli (Forum)  

Get Started