Closed (duplicate)
Project:
Drupal core
Version:
7.x-dev
Component:
database system
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
21 Nov 2007 at 16:11 UTC
Updated:
3 Jul 2008 at 11:45 UTC
As D6 schema API introduce abstraction for datetime:normal data type, this will introduce more complicated cross database compatible problem.
Refer to document from ADOdb (http://phplens.com/lens/adodb/tips_portable_sql.htm), time related abstraction require around 6 functions/operators. Without similar helper functions as ADOdb, our existing format_date() maybe a much portable solution. Should we rather REMOVE the datetime abstraction, or complete our abstraction level with better support?
Comments
Comment #1
hswong3i commented(This is part of my personal research project Siren's issue.)
Comment #2
hswong3i commentedComment #3
beginner commentedHow is this related to #200953: Schema API lacks the 'time' and 'date' type ?
Comment #4
alexanderpas commentedmay I point everyone towards:
ISO8601: Numeric representation of Dates and Time
Wikipedia: http://en.wikipedia.org/wiki/ISO_8601
Summary from ISO: http://www.iso.org/iso/support/faqs/faqs_widely_used_standards/widely_us...
Full document (zip-pdf, 228KB): http://isotc.iso.org/livelink/livelink/4021199/ISO_8601_2004_E.zip?func=...
how about a varchar field that simply stores the ISO date and/or time
Comment #5
catch@beginner #200953 has more information, so marking this as duplicate of that