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

strftime("%z") not working correctly #860

Closed
3e4 opened this issue Jun 10, 2016 · 2 comments
Closed

strftime("%z") not working correctly #860

3e4 opened this issue Jun 10, 2016 · 2 comments

Comments

@3e4
Copy link

3e4 commented Jun 10, 2016

I am running vim 4.7.1913 on Windows 7, and using Python 3.5 as default python interpreter.

%z and %Z yield the same result in the strftime() statement.

:echo strftime("%z __ %Z")
W. Europe Daylight Time __ W. Europe Daylight Time

This is a wrong behavior based on Man page of strftime. This issue might be related but only a workaround for calendar.vim was discussed.

@jamessan
Copy link
Contributor

The man page isn't relevant for Windows.

%z isn't a standard strftime format code. The (SU) at the end of the description indicates that it is an extension from the initial specification introduced by the Single Unix Specification.

Microsoft treats %z and %Z the same.

@3e4
Copy link
Author

3e4 commented Jun 10, 2016

Thank you for this clarification. I was not sure it's implemented in Windows or in vim itself. Guess I'll have to live with it.

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

No branches or pull requests

3 participants