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

TOPIC:

Date -1 upon display 23 Apr 2016 21:33 #13922

  • koenvdz
  • koenvdz's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 24
  • Thank you received: 2
Hi, I have the strangest thing happening in my component build with j-Cook.

When I display a date as a registered/ guide (Guide = an extra group in the ACL I created) the dates displayed are date - 1 day so 2015-04-20 displays as 2015-04-19. (see screencopy of beginning of table + dump of the $row array)
When I do the same as the superuser the date is displayed correctly.

I do not have the problem when I try it in the sandbox (but I do not have the same DB there nor do I have he extra ACL groups defined)

For what I can see it must happen in the JDOM, because in the com_guideman\views\documents\tmpl\default_usrdocslistgrid.php file the $row array has the correct values and the field gets displayed - 1 day AND if you happen to save he will take the displayed value into account and thus with every save of the record deduct 1 day from every date field that is not changed on the screen.

Life Website: manageguides.com
component: guideman (Build 2.8.1)
Joomla: 3.5.1
Koen
Attachments:

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

Date -1 upon display 24 Apr 2016 09:54 #13923

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
This is normal. The date are showed with the timezone offset.
You can define the timezone in the user settings.

This is why you can see different times depending of the user.
Coding is now a piece of cake
The following user(s) said Thank You: koenvdz

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

Date -1 upon display 24 Apr 2016 13:30 #13924

  • koenvdz
  • koenvdz's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 24
  • Thank you received: 2
Thanks, I oversaw the timezone setting of the user.
Koen

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

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

Real time saver and great Component Builder tool ! I have been developing with J-Cook Pro Component Builder for several months now and can say with all honesty that this product/service is second to none. The product is feature rich and is being improved and added to all the time. Do yourself a favor if you need to build a Joomla! Component then you can do no wrong in trying the product. You will save on time and effort while being able to deliver your project on time. J-Cook pro does the hard work for you you then have the freedom to fully customise the end result for your own needs. 

One word: Awesome.
Edwardcox (JED)
         

Get Started