6.0.0-beta1
7/17/25

[#12637] Horde_Alarm: Unify date formats / fix _list() for sqlite
Summary Horde_Alarm: Unify date formats / fix _list() for sqlite
Queue Horde Framework Packages
Queue Version Git master
Type Bug
State Resolved
Priority 1. Low
Owners jan (at) horde (dot) org
Requester thomas.jarosch (at) intra2net (dot) com
Created 08/28/2013 (4341 days ago)
Due
Updated 11/22/2013 (4255 days ago)
Assigned
Resolved 11/22/2013 (4255 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch Yes

History
11/22/2013 01:18:19 PM Jan Schneider Assigned to Jan Schneider
State ⇒ Resolved
 
11/22/2013 01:17:20 PM Git Commit Comment #4 Reply to this comment
Changes have been made in Git (master):

commit f4634fd16a13943ff47488b6216dc9718e99cef5
Author: Jan Schneider <jan@horde.org>
Date:   Fri Nov 22 14:17:02 2013 +0100

     Use constant and don't rely on correctly set default format (Bug #12637).

  framework/Alarm/lib/Horde/Alarm/Sql.php |   16 ++++++++--------
  1 files changed, 8 insertions(+), 8 deletions(-)

http://git.horde.org/horde-git/-/commit/f4634fd16a13943ff47488b6216dc9718e99cef5
11/22/2013 01:17:16 PM Git Commit Comment #3 Reply to this comment
Changes have been made in Git (master):

commit 44fd752925c9f8d2b0085ce8b2ffb53f3b6e7e48
Author: Thomas Jarosch <thomas.jarosch@intra2net.com>
Date:   Wed Aug 28 23:37:59 2013 +0200

     Unify date formats

     We insert dates as '2013-08-28 18:08:48' into the database
     and later on query for them like '2013-08-28T18:08:48'.

     This breaks for sqlite as it does not have
     a designated 'datetime' type. It compares the date
     as plain strings, which works for a unified date format only.

     Bug 12637

     Signed-off-by: Jan Schneider <jan@horde.org>

  framework/Alarm/lib/Horde/Alarm/Sql.php |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)

http://git.horde.org/horde-git/-/commit/44fd752925c9f8d2b0085ce8b2ffb53f3b6e7e48
11/22/2013 11:44:17 AM Thomas Jarosch Comment #2 Reply to this comment
ping (for this small change).

08/28/2013 09:41:38 PM Thomas Jarosch Patch ⇒ Yes
New Attachment: 0001-Unify-date-formats.patch Download
 
08/28/2013 09:37:25 PM Thomas Jarosch Comment #1
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Horde_Alarm: Unify date formats / fix _list() for sqlite
Queue ⇒ Horde Framework Packages
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
Reply to this comment
Hi,

Horde_Alarm currently mixes ISO-8601 dates ('2013-08-28T18:08:48')
and dates formatted like this '2013-08-28 18:08:48'.

This breaks for sqlite since it does not have a designated datetime type,
it just compares datetime as strings[1].

[1] http://www.mail-archive.com/sqlite-users@sqlite.org/msg78962.html


Attached patch makes sure we stick to just one date format.
This fixes the horde-alarms script for me.

Cheers,
Thomas

Saved Queries