US and Worldwide: +1 (866) 660-7555
Results 1 to 2 of 2

Thread: what is the defalut timezone in kettle?

  1. #1

    Post what is the defalut timezone in kettle?

    Hi All,

    Thanks for your support.

    In my transformation I need convert a date, which is stored as string, to number. For this I had written the code as

    var start_date = START_DATE_STR.str2dat("yyyy_MM_dd_HH_mm_ss");
    var end_date = END_DATE_STR.str2dat("yyyy_MM_dd_HH_mm_ss");
    var start_date_num = start_date.dat2num() / 1000;
    var end_date_num = end_date.dat2num() / 1000;

    And here my question is which timezone will be used to convert the string to date and date to number?
    Is it the timezone of kettle engine or any default timezone?
    Is there any way to specify the timezone explicitly?


    Thanks,
    Sreehari

  2. #2
    Join Date
    May 2006
    Posts
    4,882

    Default

    The default timezone is the timezone zone in which you run... there's also a parameter you can specify to in java (java -Duser.timezone=US/Eastern ... ) but for this you need to adapt the startup script.

    Regards,
    Sven

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •