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
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Design, Compete, Win: Submit Your Best Splunk Dashboards for a .conf26 Pass

Hello Splunkers,  We’re excited to kick off a Splunk Dashboard contest! We know that dashboards are a primary ...

May 2026 Splunk Expert Sessions: Security & Observability

Level Up Your Operations: May 2026 Splunk Expert Sessions Whether you are refining your security posture or ...

Network to App: Observability Unlocked [May & June Series]

In today’s digital landscape, your environment is no longer confined to the data center. It spans complex ...