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

Cannot localize time #2

Open
SterlingVix opened this issue Mar 28, 2019 · 3 comments
Open

Cannot localize time #2

SterlingVix opened this issue Mar 28, 2019 · 3 comments

Comments

@SterlingVix
Copy link

This is a feature request. First of all: love this plugin, it's maybe my favorite! Second: I always see 24-hour time, and can't find any way to localize or customize the string displayed. I'd like to show the 12-hour time.

Can this be configured via a /.idea setting? Or through a simple right-click and menu selection?

@xamgore
Copy link
Owner

xamgore commented Mar 31, 2019

That's nice to see, thank you very much! :)

Well, as a fast solution you can use the special build made for you. The line 16 has been changed there: hourhour % 12. To install it: press Ctrl+Shift+A, type in Plugins, click on the settings icon, Install Plugin from Disk, choose the downloaded zip archive, restart IDEA, enjoy.

image

About customizing: that's a great idea, I'll try to implement it as soon as possible. There will be a menu item in the Settings window — all plugins are customized there nowadays.

@frank-yf
Copy link

frank-yf commented Dec 4, 2020

Love the plugin too, and why not provide a date format configuration parameter? In Atom editer, i like to use atom-clock. If you can also complete this function, I will like it very much!!!

@xamgore
Copy link
Owner

xamgore commented Dec 4, 2020

@yuefei7746, 你好. Thank you for sharing the idea! The problem is that I don't have enough free time to implement it. Though I can give some clues if you want to make a PR ;)

  1. There is an internal registry in all IDEs, where the plugin's configuration may be hold:
    Screenshot 2020-12-04 at 20 18 08
  2. When started the plugin should call Registry methods to set the default and read the chosen time format.
  3. Date format validation should be made to ensure the plugin will work as expected.

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