mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
🐛 Fixed date helper timezone bug
closes #9381 Fixes a bug where the date helper would ignore any timezone settings, when called with a specific date option, e. g. `published_at`, as `timezone` was only ever assigned when called without options.
This commit is contained in:
parent
b99d3bc70a
commit
430973b85b
1 changed files with 1 additions and 0 deletions
|
@ -27,6 +27,7 @@ module.exports = function (date, options) {
|
|||
|
||||
format = options.hash.format || 'MMM DD, YYYY';
|
||||
timeago = options.hash.timeago;
|
||||
timezone = options.data.blog.timezone;
|
||||
timeNow = moment().tz(timezone);
|
||||
|
||||
if (timeago) {
|
||||
|
|
Loading…
Reference in a new issue