Select to view content in your preferred language

How do you automatically timestamp new and edited records in an SDE feature class?

7337
18
05-04-2010 02:38 PM
SharonMitchell
New Contributor
I would like to make it so that as a feature class is edited the "modifiedDate" and "user" fields will be updated automatically. Is there a way to do this?
0 Kudos
18 Replies
SrijanaTuladhar
Occasional Contributor
I just enable editor tracking in the feature class, I noticed that in the LAST_EDITED_DATE field, the current time is incorrect (the date is correct though). Did any of you have the same experience? Thanks!
0 Kudos
MichielStaessen1
Deactivated User

Message when enabling editor tracking clearly states that dates are stored in UTC (as they should be!)

0 Kudos
VinceAngelo
Esri Esteemed Contributor
Is the system date on your client workstation correct?

- V
0 Kudos
SrijanaTuladhar
Occasional Contributor
Yes, we're in the Eastern time, but it records the Pacific time. Also when I query the current timestamp from the oracle database, it shows the correct timestamp.  Thanks!
0 Kudos
VinceAngelo
Esri Esteemed Contributor
In which timezone is your server?

Are you using an application server connection, or Direct Connect?

- V
0 Kudos
SrijanaTuladhar
Occasional Contributor
In which timezone is your server?

Are you using an application server connection, or Direct Connect?

- V


Our server is in Eastern time zone. Please see below. We're using an application server connection. Thanks!

-bash-4.1$ date
Fri Oct 26 11:51:56 EDT 2012
0 Kudos
VinceAngelo
Esri Esteemed Contributor
Do you have the TZ environment variable set explicitly on both the Windows Desktop
host and the database server?  Without an explicit TZ, there's a great deal of room
for interpretation.

- V
0 Kudos
SrijanaTuladhar
Occasional Contributor
Do you have the TZ environment variable set explicitly on both the Windows Desktop
host and the database server?  Without an explicit TZ, there's a great deal of room
for interpretation.

- V


It does not seem like we have TZ enviroment variable set up. Could you tell what we need to set up? Thanks for your help!
0 Kudos
VinceAngelo
Esri Esteemed Contributor
This is complicated enough that you really need to research it yourself to be sure you know
what happens is what you want to hapen.  A google on "tz oracle variable" will get you started.
If you were using Direct Connect I doubt this would be an issue.

- V
0 Kudos