Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Oracle / select sysdate from dual what should return?

 
D Rog
Ranch Hand
Posts: 472
Linux Objective C Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have strange behavior. At every restart of my application



Can print only date like: 2007-07-18
or can print full time stamp, like 2007-07-18 10:23:12
What can be a reason of that? Some internal driver change issued by some other DB operations.

Another question is which timezone the printed value will be? It seems always time zone of database server applied, when java.sql.Date.toString() used. So I need to use SimpleDateFormater with my time zone to get time printed correctly. Is it expeected behavior?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic