Welcome, Guest
Username: Password: Remember me

TOPIC: [SOLVED] UTC Date Time display

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

  • koenvdz
  • koenvdz's Avatar
  • Offline
  • Junior Member
  • Posts: 24
  • Thank you received: 2
  • Karma: 0
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
Attachments:
Koen
The administrator has disabled public write access.

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
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 administrator has disabled public write access.
The following user(s) said Thank You: koenvdz

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

  • koenvdz
  • koenvdz's Avatar
  • Offline
  • Junior Member
  • Posts: 24
  • Thank you received: 2
  • Karma: 0
Thanks, I oversaw the timezone setting of the user.
Koen
The administrator has disabled public write access.
Time to create page: 0.072 seconds

Get Started