SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Github Development
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

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.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-06-2016, 08:49 AM
starfire starfire is offline
Sage Expert
 
Join Date: Mar 2008
Location: England, UK
Posts: 505
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
Reply With Quote
  #2  
Old 10-06-2016, 09:55 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
try setting
Code:
ui/translation_language_code=en
ui/translation_country_code=GB
in Sage.properties
__________________
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
Reply With Quote
  #3  
Old 10-06-2016, 04:12 PM
starfire starfire is offline
Sage Expert
 
Join Date: Mar 2008
Location: England, UK
Posts: 505
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
Reply With Quote
  #4  
Old 10-07-2016, 01:30 AM
starfire starfire is offline
Sage Expert
 
Join Date: Mar 2008
Location: England, UK
Posts: 505
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
Reply With Quote
  #5  
Old 10-07-2016, 03:19 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
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.
Reply With Quote
  #6  
Old 10-07-2016, 03:52 AM
starfire starfire is offline
Sage Expert
 
Join Date: Mar 2008
Location: England, UK
Posts: 505
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
Reply With Quote
  #7  
Old 10-07-2016, 03:56 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
Quote:
Originally Posted by starfire View Post
Your right, had them the wrong way around

All OK now, thanks for the advice
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
Reply With Quote
  #8  
Old 10-07-2016, 03:59 AM
starfire starfire is offline
Sage Expert
 
Join Date: Mar 2008
Location: England, UK
Posts: 505
Quote:
Originally Posted by Fuzzy View Post
So dates are displaying correctly now?
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
Reply With Quote
  #9  
Old 10-07-2016, 06:58 AM
Tiki's Avatar
Tiki Tiki is offline
Sage Icon
 
Join Date: Feb 2005
Location: Southwest Florida, USA
Posts: 2,009
Quote:
Originally Posted by starfire View Post
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
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
Reply With Quote
  #10  
Old 10-07-2016, 08:48 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
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
Reply With Quote
  #11  
Old 01-21-2021, 08:35 PM
SimonH SimonH is offline
Sage User
 
Join Date: Feb 2010
Location: Sydney, AUS
Posts: 13
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!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -6. The time now is 11:14 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.