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

Awards for the best Joomla app. This product is gonna win an award for this amazing job. Cook Self Service is the the best application from all over the Joomla universe ! It brings Joomla to a professional level really advanced for developers. It is a real fun to develop with it. The ACL part and security checks implementation are just... so much hours saved. I can now concentrate myself more on the design part and the creative works. Thank you so much. Guys I offer you all my congratulation ! Keep up the works because Joomla is needing it to increase the quality of extensions availables on the JED. I also learned a lot because I can see how to code at the proper place and I found all my answers reading the forum.
lack_hanson (JED)
          

Get Started