On Mon, Jan 10, 2011 at 6:47 PM, Bob <[email protected]> wrote:
>
>>which date is wrong for you and what should it be? what is your timezone?
>
> It's not the date, but the time of the call as played in the TUI. The time
> displayed on the web interface is correct for the messages.
>
>>If I recall correctly,  the timezone recording in the message digest is
> fixed at EST for all systems no matter the
>>timezone on the OS.
>>This was a bug that I believe was purposely ported to sipxivr to avoid
> migrating existing voicemail digest files
>>timestamps in files to GMT.
>>As long as each server is adjusting, it shouldn't matter, but maybe
> something isn't adjusting.
>
>
> Server TZ is EST. Server HW clock is EST.

I looked at the code,

  sipXivr/src/main/java/org/sipfoundry/voicemail/MessageDescriptor.java

and I was incorrect, it _does_ use the systems timezone, but fixes the
_locale_ to English.  So I checked a production system in the eastern
timezone and timestamps are stored in native timezone

 <messagedescriptor>
...
  <timestamp>Tue, 28-Sep-2010 05:41:12 PM EDT</timestamp>

so for some reason java is not in sync with the timezone the OS is on.

I wrote a small test program, let me know what this returns on the system.

To run upload class file to system and in same directory as the class
file, run command:
  java TestTime

Attachment: TimeTest.class
Description: Binary data

import java.text.*;
import java.util.*;
public class TimeTest {
    private static String DATE_FORMAT = "EEE, d-MMM-yyyy hh:mm:ss aaa z";
    public static void main(String[] x) {
	SimpleDateFormat dateFormat = new SimpleDateFormat(DATE_FORMAT, Locale.ENGLISH);
	System.out.println(dateFormat.format(new Date()));
    }
}
_______________________________________________
sipx-users mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-users/

Reply via email to