Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix date_format config #738

Merged
merged 1 commit into from
Apr 14, 2020
Merged

Fix date_format config #738

merged 1 commit into from
Apr 14, 2020

Conversation

stp-ip
Copy link
Member

@stp-ip stp-ip commented Apr 12, 2020

What this PR does / why we need it:
Fixes date format config not being used. $.Site wasn't the correct entrypoint, but should have been .root.Site due to it being injected into the partial from us.

Which issue this PR fixes (optional - uncomment and add issue):
fixes #736

Fix global date_format config not being applied

@stp-ip stp-ip added this to the v0.17.0 milestone Apr 12, 2020
@stp-ip stp-ip requested a review from mpourismaiel April 12, 2020 14:15
@ghost
Copy link

ghost commented Apr 12, 2020

Congratulations 🎉. DeepCode analyzed your code in 1.107 seconds and we found no issues. Enjoy a moment of no bugs ☀️.

👉 View analysis in DeepCode’s Dashboard

Copy link
Member

@mpourismaiel mpourismaiel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. It's weird that it's a bug though.

@stp-ip
Copy link
Member Author

stp-ip commented Apr 14, 2020

It's due to the partial scope not having access to the global $ scope. That was the reason we introduced $self and $root, which we long term should probably make consistent ^^

@stp-ip stp-ip merged commit 8b10f68 into master Apr 14, 2020
@nzt-ventures nzt-ventures deleted the fixDateFormat branch April 24, 2020 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

date_format param does not work for publish dates although used in partial
2 participants