Getting Data In

How I can change date format in time picker?

mcseem
Explorer

Hi.
Switched Splunk to russian locale (http://docs.splunk.com/Documentation/Splunk/6.2.1/AdvancedDev/TranslateSplunk)
Timestamp displays correctly now (DD.MM.YYYY HH:MM:SS)
But w0 still sunday, date range dialog using MM/DD/YYYY format and timepicker displays sunday as first weekday.

Best regards, Max Salimov

Tags (2)
0 Karma

abhijeet01
Path Finder
0 Karma

apakhomov
Path Finder

Mcseem, thank you!
For locale correction, I created 3 symbolic links:

ln -s /opt/splunk/lib/python2.7/site-packages/splunk/appserver/mrsparkle/locale/en_US /opt/splunk/lib/python2.7/site-packages/splunk/appserver/mrsparkle/locale/ru_RU
ln -s /opt/splunk/share/splunk/search_mrsparkle/exposed/js/contrib/jquery.ui.datepicker/jquery.ui.datepicker-ru.js /opt/splunk/share/splunk/search_mrsparkle/exposed/js/contrib/jquery-ui-1.10.4/i18n/jquery.ui.datepicker-ru.js
ln -s /opt/splunk/share/splunk/search_mrsparkle/exposed/js/contrib/jquery.ui.datepicker/jquery.ui.datepicker-ru.js /opt/splunk/share/splunk/search_mrsparkle/exposed/js/contrib/jquery-ui-1.10.4/i18n/jquery.ui.datepicker-ru-RU.js

After that I restarted the Splunk service.
And now time stamp and timepicker displays date, time and calendar correctly for the Russian locale.


Best regards, Artem.

0 Karma

a_salikov
Path Finder

Hello, Artem

I followed by your steps, but I don't have any changes. Can you help me?
Thank you.

Best regards, Ablay.

0 Karma

apakhomov
Path Finder

Hello, Ablay
Maybe your browser has English locale by default? Try connect by direct link with setted locale. For example: http://splunkserver.local:8000/ru-RU/

0 Karma

a_salikov
Path Finder

Thanks!

I tried so http://192.168.1.2:8000/ru-RU/app/search, but without any changes.

0 Karma

apakhomov
Path Finder

I made the same steps on the new installation. And it works. Maybe you expect some other... See time format on the followed screenshots.
en-US:
link text
ru-RU:
link text

0 Karma

mcseem
Explorer

Found one more solution.
It looks more suitable for production.
There is jquery.ui.datepicker-ru.js in $SPLUNK/share/splunk/search_mrsparkle/exposed/js/contrib/jquery.ui.datepicker/. It's fully localize datepicker. There are many other languages in this folder.
Tried to place this file folders:
$SPLUNK/share/splunk/search_mrsparkle/exposed/js/contrib/jquery-ui-1.10.4/i18n
$SPLUNK/share/splunk/search_mrsparkle/exposed/js/contrib/jquery/ui/i18n
It works 🙂
Possible placing to $SPLUNK/share/splunk/search_mrsparkle/exposed/js/contrib/jquery-ui-1.10.4/i18n will be enought, but not sure.

Got some problems:
My server working for 2 URL-s, one with 8000 port (https://splunk.mydomain.ru:8000) and one without (https://splunk.mydomain.ru) because of forwarding 443 to 8000.
When using URL with port localization works fine.
When using URL without port - it doesn't work.

mcseem
Explorer

Found solution for timepicker like this
http://answers.splunk.com/answers/28394/date-format-still-us-in-timerangepicker-module-using-web-gb....
(made changes in $SPLUNK_HOME/share/splunk/search_mrsparkle/exposed/js/build/searchpage.js)
But w0 or w still sunday.
And not sure this solution is suitable for production.

0 Karma
Get Updates on the Splunk Community!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...