Solaris: Date Command Output and File Time Stamps Are Displayed Incorrectly in a Non-Global Zone (NGZ) (Doc ID 1449187.1)

Last updated on JANUARY 03, 2017

Applies to:

Solaris Operating System - Version 10 3/05 and later
Information in this document applies to any platform.

Goal

When using the date command, or running ls -l, the date command output and the time stamps of files and directories are oddly formatted in the non-global zone:

# date e martë, 03 prill 2012 11.08.42.PD EDT


# cd /usr/local

# ls -lrt

total 540710
drwxr-xr-x   3 bin      bin          512 Kor 12  2011 var
drwxr-xr-x   2 bin      bin          512 Kor 12  2011 sbin
drwxr-xr-x  20 root     root         512 Mar 14 10:52 root
drwxr-xr-x   7 root     bin          512 Mar 28 12:24 BerkeleyDB.4.2
drwxr-xr-x   3 bin      bin          512 Mar 28 12:25 libexec
drwxr-xr-x   4 bin      bin          512 Mar 28 12:27 etc
drwxr-xr-x   2 bin      bin          512 Mar 28 12:27 info
drwxr-xr-x   6 root     bin          512 Mar 28 12:28 man
drwxr-xr-x   9 bin      bin          512 Mar 28 12:28 ssl
drwxr-xr-x  10 bin      bin          512 Mar 28 12:29 share
drwxr-xr-x   4 root     bin         1024 Mar 28 12:30 bin
drwxr-xr-x  16 root     bin          512 Mar 28 12:30 doc
drwxr-xr-x   6 root     bin          512 Mar 28 12:30 include
drwxr-xr-x   7 root     bin         3072 Mar 28 12:30 lib
-rw-r--r--   1 apache   httpd    276669979 Pri  3 10:54 apache22.tar.gz
drwxr-xr-x  15 apache   httpd        512 Pri  3 10:54 apache22
drwxr-xr-x   3 atgdcs   other        512 Pri  3 10:54 dynamo
drwxr-xr-x  12 root     sys         1024 Pri  3 11:26 dev

However, the date command output is correct on global zone.

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms