Loading...
 
Skip to main content

Publish Date field skews on post preview where site default time zone is UTC and user time is UTC or inferred

Status
Open
Subject
Publish Date field skews on post preview where site default time zone is UTC and user time is UTC or inferred
Version
14.x
Category
  • Usability
Feature
Blog
Resolution status
New
Submitted by
aexoxea
Lastmod by
aexoxea
Rating
(1)
Related-to
Description

When using the Blog feature under Tiki 14, if...:

  • the site default timezone is set to UTC, and
  • a user with blog posting privileges has their timezone set to UTC or Local (i.e. their timezone is being inferred by Tiki)


...then, if the user works on a new blog post and uses the 'preview' feature, when the page reloads after requesting the preview, the Publish Date will be skewed by the difference between UTC and the inferred Local timezone.

The skew is also compounding; if 'preview' is used multiple times, the Publish Date can end up being quite distant from the actual date and time of the blog post.

I have related tickets 1579 and 4007 as they describe similar behaviour in the Banners feature; please feel free to un-relate if they are not pertinent.



Edit 2015-10-22: After demonstrating on show.t.o, it appears the skew may relate to the timezone of the underlying server, rather than what is being inferred by Tiki from the user. However, it is still the case that setting an explicit timezone alleviates the issue.

Workaround

This can be worked around by:

  • setting a timezone other than UTC for the site or user, or
  • correcting the Publish Date before saving the post.
Importance
4
Priority
20
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
5737
Created
Thursday 22 October, 2015 12:25:45 UTC
by aexoxea
LastModif
Thursday 22 October, 2015 13:00:51 UTC


Show PHP error messages