Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

timestamp handling not consistent when same date and time data is supplyed [DNET99] #111

Closed
firebird-automations opened this issue Jun 27, 2007 · 6 comments

Comments

@firebird-automations
Copy link

Submitted by: luigi (ricercar)

Assigned to: @carlosga

Attachments:
Bug Firebird.pdf

Dear All, I will appreciate Your suggestions on how to come out from the problem reported below.
Using the following method when filling fields and creating records across two different tables, where each table has a TIMESTAMP (NOT NULL) field, the MONTH is swapped with the DAY.

aString=New System.DateTime(CInt(sYEAR), CInt(sMONTH), CInt(sDAY), CInt(sHOUR), CInt(sMINUTE), CInt(sSECOND)).ToString("yyyy-MMMM-dd hh:mm:ss")

So far, when creating a record for table 1 having the following date "2004-marzo-12 08.48.39" set into aString and another record for table 2 with the same date, then table 1 has the MONTH that's swapped with the DAY if compared with the records in table2.When browsing through the records...table 1 shows its records with the timestamp field having a value of December the 3rd, 2004, while table 2 shows its records with a timestamp set (correctly) to March the 12, 2004.

By the way, I've tryed with all of the possible timestamp formats, as for MM-dd-yyyy, dd-MM-yyyy, ecc. (such formats have been applied across all the table insert functions, but the problem it's still there).

Thanks

@firebird-automations
Copy link
Author

Commented by: luigi (ricercar)

a snapshot of the two tables showing that MONTH and DAY are swapped between the two tables.

@firebird-automations
Copy link
Author

Modified by: luigi (ricercar)

Attachment: Bug Firebird.pdf [ 10440 ]

@firebird-automations
Copy link
Author

Commented by: @cincuranet

Can you provide test case? I'm not able to reproduce this on my pc.

@firebird-automations
Copy link
Author

Commented by: @carlosga

Without a little more of information it's going to be really hard to know where the problem could be to help you.

As Jiri has suggested yet can you send a test case ??

Are you sending the Timestamp as a String in the FbCommand parameter ??

If yes, why aren't you sending a DateTime value directly ??

@firebird-automations
Copy link
Author

Commented by: @carlosga

If no new information is provided to be able to reproduce the problem in the next week i will close the item.

@firebird-automations
Copy link
Author

Modified by: @carlosga

status: Open [ 1 ] => Closed [ 6 ]

resolution: Won't Fix [ 2 ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant