Post a reply

Write your message and submit

Options

Click in the dark area of the image to send your post.

Go back

Topic review (newest first)

nestoru
2011-12-16 15:53:56

I just confirmed this is an issue. I have uploaded just the job here http://dl.dropbox.com/u/50204770/abc.zip and BTW probably your problem is that the domain tt is not allowed in your country?

In any case I also have the there the original file posted by Belayev in case you want the whole project http://dl.dropbox.com/u/50204770/dateTS … roblem.zip

shong
2011-12-16 08:31:36

Hi
We have trouble to access your website, please upload some screennshots of job on our forum directly.

Thanks very much for your support!
Shong

pedro
2011-12-16 08:01:42

Hi
Sorry that i try to download your job and get some http error.

You don't want to reject 12/5/2011, right?
Try date pattern "M/d/yyyy".
Hope this will help you.

Best regards!
Pedro

Belayev
2011-12-16 06:03:21

Hello all,

I have isolated this case to tSchemaCompliaceCheck component that I believe is rejecting some dates incorrectly.
It is rejecting 12/5/2011 with "MM/dd/yyyy" pattern.

The date is parsing correctly with SimpleDateFormat as in the following java code:

        String inputStringDate = "12/5/2011";
        SimpleDateFormat dSdf = new SimpleDateFormat("MM/d/yyyy");
        SimpleDateFormat ddSdf = new SimpleDateFormat("MM/dd/yyyy");
       
        Date firstDate = ddSdf.parse(inputStringDate);
        Date secondDate = dSdf.parse(inputStringDate);
       
        assertNotNull(firstDate);
        assertNotNull(secondDate);
        assertEquals(firstDate, secondDate);


Feel free to download entire TalendJob from here:
http://db.tt/wehtVYj8

I'm on Ubuntu 10.10 64 Bit, and I am using TOS-All-r63143-V4.2.2

Board footer

Powered by FluxBB