Patches
Search the entire project
This project's trackers
This project's forums
This project's tasks
This project's releases
This project's documents
This project's news
Project
People
Skill
Advanced search
Log In
|
New Account
Home
My Page
Projects
Code Snippets
Project Openings
Npgsql .Net Data Provider for Postgresql
Summary
Activity
Forums
Tracker
Lists
Tasks
Docs
Surveys
News
SCM
Files
[#1011013] Bug when NpgslTimeStamp '1001.01.01 00:00:00' is converted from UTC to local Time Zone
View Trackers
|
Patches
|
Download .csv
|
Monitor
Date:
2011-04-11 17:03
Priority:
3
State:
Open
Submitted by:
Hans Peter (
jd185152
)
Assigned to:
Nobody (None)
Category:
Group:
Resolution:
None
Summary:
Bug when NpgslTimeStamp '1001.01.01 00:00:00' is converted from UTC to local Time Zone
Detailed description
for example when
local time = UTC - 1
then
TimeStamp.Date.DaysSinceEra = -1
then (for example when trying to cast to DateTime via explicit operator)
-> runtime error.
Followup
Message
Date: 2011-04-15 03:09
Sender:
Josh Cooley
Do you have a patch or a bit of sample code demonstrating the bug? Here's a snippet of code I tried in an attempt to reproduce your issue.
var timestamp = NpgsqlTimeStamp.Parse("1001-01-01 00:00:00");
var dateTime = (DateTime)timestamp;
This worked without problem in a timezone with negative offset.
Attached Files:
Changes:
No Changes Have Been Made to This Item