|
SageTV Github Development Discussion related to SageTV Open Source Development. Use this forum for development topics about the Open Source versions of SageTV, hosted on Github. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
Date formatting, locale ?
I'm using the docker SageTV and I'm based in the UK.
I notice that dates are being displayed in american MM/DD/YY format, under Windows I used to get UK DD/MM/YY format. Any idea how to change, I presume it's something to do with locale and I notice when Sage starts: Code:
Thu 10/6 15:02:38.681 [main@7440e464] JVM version=1.8.0_101 Thu 10/6 15:02:38.681 [main@7440e464] OS=Linux 4.4.19-unRAID Thu 10/6 15:02:38.682 [main@7440e464] client=false Thu 10/6 15:02:38.682 [main@7440e464] locale=en_US Thu 10/6 15:02:38.689 [ThreadMonitor@a6c600b] Thread CPU monitoring started interval=300000 Thu 10/6 15:02:38.697 [main@7440e464] SageTV V9.0.9.439 Any ideas, if I found a way of changing that to en_GB would that resolve the issue?
__________________
2 X HD300, 2 X HD100 & KVM unRAID Host with SageTV Docker using TBS 6285 Quad DVB-T2 & TBS 6984 Quad DVB-S2 Tuners |
#2
|
||||
|
||||
try setting
Code:
ui/translation_language_code=en ui/translation_country_code=GB
__________________
Buy Fuzzy a beer! (Fuzzy likes beer) unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers. Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA. Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S Other Clients: Mi Box in Master Bedroom, HD-200 in kids room |
#3
|
|||
|
|||
I'll give it a bash, thanks.
ps. this issue occurs on my extenders only, my windows client displays date fine
__________________
2 X HD300, 2 X HD100 & KVM unRAID Host with SageTV Docker using TBS 6285 Quad DVB-T2 & TBS 6984 Quad DVB-S2 Tuners |
#4
|
|||
|
|||
Unfortunately that didn't change the date displayed on the extenders
In the startup log it does now report: Code:
hu 10/6 23:17:46.645 [main@7440e464] JVM version=1.8.0_101 Thu 10/6 23:17:46.646 [main@7440e464] OS=Linux 4.4.19-unRAID Thu 10/6 23:17:46.646 [main@7440e464] client=false Thu 10/6 23:17:46.646 [main@7440e464] locale=gb_EN edit: I note this error at the start of the logs: Code:
Thu 10/6 23:17:46.547 [main@7440e464] Error processing TZ:Europe/London threw:java.text.ParseException: Missing non-optional hours Thu 10/6 23:17:46.552 [main@7440e464] Changed default timezone to:Greenwich Mean Time
__________________
2 X HD300, 2 X HD100 & KVM unRAID Host with SageTV Docker using TBS 6285 Quad DVB-T2 & TBS 6984 Quad DVB-S2 Tuners |
#5
|
||||
|
||||
that's odd. are you sure you didn't get the properties backwards? typically, locale should be displayed as [language]_[COUNTRY], and indeed, when the settings are null, it is displayed as the default en_US - but for some reason, you are now showing gb_EN, when it SHOULD be en_GB.
In any case, if those properties are empty or missing, sage will use the default locale of the system (it gets this from the JVM environment). I'm not sure if unRAID has a locale setting easily accessible for it, but I'm guessing it is set to en_US (as is typically the default in linux environments).
__________________
Buy Fuzzy a beer! (Fuzzy likes beer) unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers. Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA. Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S Other Clients: Mi Box in Master Bedroom, HD-200 in kids room Last edited by Fuzzy; 10-07-2016 at 03:36 AM. |
#6
|
|||
|
|||
Your right, had them the wrong way around
All OK now, thanks for the advice
__________________
2 X HD300, 2 X HD100 & KVM unRAID Host with SageTV Docker using TBS 6285 Quad DVB-T2 & TBS 6984 Quad DVB-S2 Tuners |
#7
|
||||
|
||||
So dates are displaying correctly now? Just wanted to make sure the locale was working properly (thinking it was since the windows based ones were). The 'real' fix would still be to figure out how to set the locale properly in unRAID, but at least the sage.properties tweak will work for sage related things.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer) unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers. Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA. Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S Other Clients: Mi Box in Master Bedroom, HD-200 in kids room |
#8
|
|||
|
|||
Yes, DD/MM/YY as expected for GB.
And the log reports: Code:
Fri 10/7 10:24:51.034 [main@7440e464] locale=en_GB
__________________
2 X HD300, 2 X HD100 & KVM unRAID Host with SageTV Docker using TBS 6285 Quad DVB-T2 & TBS 6984 Quad DVB-S2 Tuners |
#9
|
||||
|
||||
Interesting that the time stamps in the log are still MM/DD. I wonder if that is determined by the Docker locale.
__________________
Server: Ryzen 2400G with integrated graphics, ASRock X470 Taichi Motherboard, HDMI output to Vizio 1080p LCD, Win10-64Bit (Professional), 16GB RAM Capture Devices (7 tuners): Colossus (x1), HDHR Prime (x2),USBUIRT (multi-zone) Source: Comcast/Xfinity X1 Cable Primary Client: Server Other Clients: (1) HD200, (1) HD300 Retired Equipment: MediaMVP, PVR150 (x2), PVR150MCE, HDHR, HVR-2250, HD-PVR |
#10
|
||||
|
||||
I think that's just because the locale does not have a translation for the Day Month/Date Time format that the log uses, so it doesn't localize it, and just passes through the 'default' format. Locale's are a strange situation unless you use standardized formats, which the log entry does not do.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer) unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers. Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA. Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S Other Clients: Mi Box in Master Bedroom, HD-200 in kids room |
#11
|
|||
|
|||
Sorry to bump an old thread - but I've just successfully converted my Windows 10 SageTV server into a VM running on Unraid and I noticed the dates had curiously reverted to MDY format in the extender UI.
I added the locale in the properties as suggested and this seems to have fixed the issue - thanks! |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
HD200 in a remote locale = soft image... | tvmaster2 | SageTV Media Extender | 5 | 07-17-2015 10:41 AM |
Sorting based on released date and add to library date not working still | Gustovier | Diamond | 35 | 03-15-2011 12:45 PM |
How to Display Recordings by Recording Date & Original Air Date | joe123 | SageTV Customizations | 25 | 02-16-2010 05:28 AM |
Locale setting (date display) on HD200? | MrFusion | SageTV Media Extender | 0 | 10-18-2009 08:06 AM |
formatting in 64k Blocks | zjennings | Hardware Support | 11 | 01-26-2004 07:35 AM |