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

  I found "cook" two days ago. Played around with it for a day and then within a day got rid of two legacy applications in IBM Lotus Domino Notes and replaced them with "cook". It was really easy. A piece of cake. Actually it was even easier than cooking. Cooking involves more work than developing with "cook". What can I say about "cook"? Great application great price for what it delivers great forum with a lot of information and fast responses active and friendly community fast forward moving development cycle So what should I say "Monsieur Le Cook"? Keep the good work going it will lead to success. Having become a paying member in the words of Edith Piaf may I say ..... non rien de rien ... je ne regrette rien. Vive La France.
FK (JED)
         

Get Started