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

Also expose date as extra Luxon object #3315

Closed
flcdrg opened this issue Jun 9, 2024 · 1 comment
Closed

Also expose date as extra Luxon object #3315

flcdrg opened this issue Jun 9, 2024 · 1 comment
Labels

Comments

@flcdrg
Copy link

flcdrg commented Jun 9, 2024

Is your feature request related to a problem? Please describe.

I would like to access the original time zone offset that was specified in front matter. eg.

2024-03-11T10:00:00.000-07:00
2024-03-31T17:00:00.000+10:30

As far as I can tell, that information is lost when the date is converted to a JavaScript Date.

Describe the solution you'd like

If there were an additional property eg. luxonDate that was set to the Luxon DateTime object, then that object would be directly available for use.

Describe alternatives you've considered

No response

Additional context

No response

@zachleat
Copy link
Member

This is (I believe) solved by #867, shipping soon with 3.0.0-alpha.15! Would love confirmation!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants