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

  Excellent Tool ! This tool will save you a lot of time writing the same old structure. I've used others but this is really nice for a quick start. Makes a 3 hour task a 15 minute one. Thanks for this extension
dickrundell (JED)
         

Get Started