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.078 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