mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 22:02:11 +03:00
Revert "🐛 Fixed date helper timezone bug (#9382)"
This reverts commit c3b0219d70
.
This commit is contained in:
parent
c3b0219d70
commit
b99d3bc70a
@ -13,14 +13,13 @@ module.exports = function (date, options) {
|
||||
if (!options && date.hasOwnProperty('hash')) {
|
||||
options = date;
|
||||
date = undefined;
|
||||
}
|
||||
timezone = options.data.blog.timezone;
|
||||
|
||||
timezone = options.data.blog.timezone;
|
||||
|
||||
// set to published_at by default, if it's available
|
||||
// otherwise, this will print the current date
|
||||
if (this.published_at) {
|
||||
date = moment(this.published_at).tz(timezone).format();
|
||||
// set to published_at by default, if it's available
|
||||
// otherwise, this will print the current date
|
||||
if (this.published_at) {
|
||||
date = moment(this.published_at).tz(timezone).format();
|
||||
}
|
||||
}
|
||||
|
||||
// ensure that context is undefined, not null, as that can cause errors
|
||||
|
Loading…
Reference in New Issue
Block a user