Modify

Opened 17 years ago

Closed 3 years ago

#2216 closed defect (wontfix)

[patch included] Plugin fails to update mood entry

Reported by: dexen deVries Owned by: Brett Smith
Priority: normal Component: NikoNikoPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.10

Description

with Trac 10.4 and decent SQLite. It seems that string in SQLite (in my configuration) is stored as 'DD-MM-YYYY', while the plugin uses 'DD/MM/YYYY' format, thus SQL query doesn't find existing row -- and fails upon issuing INSERT (rather than UPDATE, which would be issued should the plugin find previous entry). The difference in formatting of date field may be due to regionall setting (LOCALE).

I kinda fixed it by commenting out:

#date_time = now.strftime("%d/%m/%Y");

and adding above it following code:

date_time = str(now.date())

(I'm sorry it's not a real patch, I'm in hurry now >_>;; )

Attachments (0)

Change History (2)

comment:1 Changed 17 years ago by Brett Smith

Status: newassigned

comment:2 Changed 3 years ago by Ryan J Ollos

Resolution: wontfix
Status: assignedclosed

Deprecated and removed.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Brett Smith.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.