Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Rename "offset" to "blogTimezone" #47

Merged
merged 1 commit into from Jun 9, 2016

Conversation

kevinansfield
Copy link
Collaborator

@kevinansfield kevinansfield commented Jun 8, 2016

refs TryGhost/Ghost#6941 (comment)

  • blogTimezone and timezone better reflect their values (a string representing a timezone in the format Europe/Dublin) than offset which suggests a fixed value

This hopefully makes things a little easier to follow for now. Once the synchronous settings service is ready I imagine the timeZone service and it's timeZone.blogTimezone will disappear and it'll be replaced with settings.activeTimezone.

refs TryGhost/Ghost#6941 (comment)
- `blogTimezone` and `timezone` better reflect their values (a string representing a timezone in the format `Europe/Dublin`) than `offset` which suggests a fixed value
return verifyTimeStamp(value ? moment(value).tz(offset).format(displayDateFormat) : '');
function formatDate(value, timezone) {
// we output the date adjusted to the blog timezone selected in settings
return verifyTimeStamp(value ? moment(value).tz(timezone).format(displayDateFormat) : '');

This comment was marked as abuse.

@acburdine acburdine merged commit 4bbb2c6 into TryGhost:master Jun 9, 2016
@kevinansfield kevinansfield deleted the rename-tz-offset branch February 4, 2017 10:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants