Solaris 5.8 Upgrade is causing Date format issue.

Thread Tools Search this Thread
Operating Systems Solaris Solaris 5.8 Upgrade is causing Date format issue.
# 8  
Old 03-31-2014
Solaris 5.8..

Thanks for your reply and questions.

No the web portal does not use the OS local accounts for login. the web portal credentials are authenticated using database. No I never came across that any other users who login to the server but not the web portal and their account getting locked after 3 days of inactivity. User can only access web app and not the server.

Also my locale in both the environments is identical which is en_GB.

As alreayd told, code and Java version are also identical.

# 9  
Old 04-01-2014
Try to change locale to C.
It's maybe enough to change environment in a start shell, and let your application inherit it:
LC_ALL=C /etc/init.d/yourstuff start

To demonstrate the impact:
LC_ALL=en_US date
Tuesday, April  1, 2014 01:16:43 PM CEST
LC_ALL=C date
Tue Apr  1 13:16:43 CEST 2014

# 10  
Old 04-01-2014
Solaris 5.8..

Thanks for your response.

Just a clarification. what do you mean by yourstuff under etc/init.d ?

my locale setting is:
test@server> locale


Last edited by Franklin52; 04-01-2014 at 09:59 AM.. Reason: Please use code tags
# 11  
Old 04-01-2014
With yourstuff I mean your application.
I gave an example for an application that starts as a daemon/service.
# 12  
Old 04-29-2014
Hi madeingermany

Many thanks for suggesting the LC_ALL parameter value change to C. I have done it and evrything looks perfectly fine. Many thanks for resolving this long pending issue.

But I am still confused that in dev environment it is working fine without this parameter.

Thanks a lot :-))
# 13  
Old 05-04-2014
are you locking the account after 90 days or 3 months? may be the format of date swaped day with month and your application/script now checks the day instead of month?
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Solaris Date format help please

I have list of dates in a file. Am reading each line and trying to format date, Can you please help me ? Sample file content: 02/22/16 USA is great country 02/21/16 USA future 02/23/16 who is he I want to read each line from above file and format date as below 2016-02-21 (i.e., using... (1 Reply)
Discussion started by: prince1987
1 Replies

2. Solaris

Sun-Fire-V490 Printer Issue After Upgrade of Solaris

Hey Guys I am new here, dont know if any one can assist me with this issue. I have a Sun-Fire-V490 machine that was upgraded to version 9 and patched a few months back. Problem is a few network printers managed by the server is printing an extra page that comes out before and after every print... (0 Replies)
Discussion started by: mprogams
0 Replies

3. Solaris

Solaris patching issue with Live Upgrade

I have Solaris-10 sparc box with ZFS file-system, which is running two non global zones. I am in process of applying Solaris Recommended patch cluster via Live Upgrade. Though I have enough space in root file-system of both zones, everytime I run installcluster, it fails with complaining less... (7 Replies)
Discussion started by: solaris_1977
7 Replies

4. Shell Programming and Scripting

to replace Date format issue

Hi, I have the below data in a file in one of the path, 101 02100002111406893401207310900A094101xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 5200xxxxxxxxxx D18000_1 CCDXXXXXXX JUL 31201207 1140689340000001 622113010547999999999003 000333333334RE ... (1 Reply)
Discussion started by: Ramyajiguru1
1 Replies

5. Solaris

Solaris 10 Live Upgrade Issue

Hi Guys, having an issue with running Live Upgrade on a t5240 runiing Solaris 10 5/08. The system has the required patches 121430, and Live upgrade was updated from the install media sol-10-u10-ga2-sparc-dvd.iso The following boot environments were created solenv1 and solenv2 with the... (8 Replies)
Discussion started by: Revo
8 Replies

6. Solaris

Change date format in solaris 10

Hi We have upgraded our sun machine from solaris 9 to solaris 10. Before upgradation the date command output(Solaris 9) Wed Oct 13 09:45:21 IST 2010 But after upgradation the output for date is as below(solaris 10). Wednesday, October 13, 2010 9:46:14 AM IST Looks like I need to... (1 Reply)
Discussion started by: csreenivas
1 Replies

7. Solaris

Solaris Live Upgrade issue with Zones

I 'm running solaris10 u6 with 141414-02. My system is T5220 running 2 Ldoms and 7 zones on primary domain. I 'm tryin to create booth environment on my alternate root disk after breaking the SVM mirroring but it does not go well and stuck at some point , and i have to reboot the system to get rid... (1 Reply)
Discussion started by: fugitive
1 Replies

8. Solaris

setting date format in solaris

Hi, i just want to know how to format date command in solaris. like in linux if i use `date +%s`, it gives me seconds since 1970, but in solaris (sol86) , it is giving %s as result. Is there any different way in solaris Thanks Sarbjit (1 Reply)
Discussion started by: sarbjit
1 Replies

9. UNIX for Advanced & Expert Users

date issue-find prevoius date in a patricular format

Hi , I have written a shell script that takes the current date on the server and stores it in a file. echo get /usr/home/data-`date '+%Y%d'`.xml> /usr/local/sandeep/GetFILE.ini I call this GetFILE.ini file from an sftp program to fetch a file from /usr/home/ as location. The file is in... (3 Replies)
Discussion started by: bsandeep_80
3 Replies
Login or Register to Ask a Question