Re: [Agilo for Trac] Multiple date format conflict

147 views
Skip to first unread message

Stefano Rago

unread,
Jun 13, 2013, 5:06:57 AM6/13/13
to ag...@googlegroups.com
Hi Thad,

On Jun 12, 2013, at 8:30 PM, Thad Miller <thad....@gmail.com> wrote:

I don't know if this is a Trac issue or an Agilo issue, but I'll start here.  I've recently installed Trac and Agilo on an Ubuntu server 12.04 host, so far so good (I haven't run into any errors), except for a "conflict" in the date format.  On the Roadmap page, both Milestones and Sprints display dates in "MM/DD/YYYY hh:mm:ss a" format (which makes sense since my apache conf has:  SetEnv trac.locale "en_US.UTF-8").  However, when I click Add new sprint, the datepicker (for both the start and end fields) insists on the "MMM d, yyyy h:mm:ss a" format, but any attempt to save fails with "Invalid Date" (unless I change the field to a "MM/DD/YYYY hh:mm:ss a" format, but then any time either field gets focus, the format is changed).  Oddly, attempting to add a new Milestone also produces a datepicker with the "MMM d, yyyy h:mm:ss a" format, but that format works here!

How can I correct the multiple date formats?


Thanks for reporting this problem, which is most likely an Agilo bug.
The inconsistent behaviour among sprint chooser and milestone chooser is probably due to the fact that the milestone is a trac built-in model, while the sprint is added by Agilo. I have filed this issue now and we will work on it as soon as possible.
In the meantime, you can disable the date picker for the sprint dates altogether by deleting the following lines from this file:

[...]/agilo/scrum/sprint/templates/agilo_sprint_edit.html

19:        $("#start").datetimepicker();
20:        $("#end").datetimepicker();


Hope this helps

Stefano Rago

Stefano Rago

unread,
Aug 22, 2013, 4:48:22 AM8/22/13
to ag...@googlegroups.com
Hi Thad,

We haven't been able to reproduce your issue, so we would like to ask you some more information about your setup.
Could you please provide us with the content of the /about page when logged in with TRAC_ADMIN permissions (please make sure to remove any sensitive information first)?

Also, do you have babel installed?

Thanks

Stefano
--
Stefano Rago
Software Engineer
Agilo Software GmbH
Gruenberger Str. 54
10245 Berlin, Germany

stefan...@agilosoftware.com
http://www.agiloforscrum.com

Amtsgericht Charlottenburg: HRB 127146
CEO Marion Eickmann, Andrea Tomasini

Thad Miller

unread,
Nov 13, 2013, 10:12:50 AM11/13/13
to ag...@googlegroups.com
Hi Stefano,

I don't remember installing babel (it's been a LONG time), but according to the /about page, I do.  Here's the output...


System Information

PackageVersion
Trac1.0
Agilo1.3.11-PRO
Babel0.9.6
Docutils0.8.1
Genshi0.6 (with speedups)
mod_wsgi3.3 (WSGIProcessGroup WSGIApplicationGroup %{GLOBAL})
MySQLserver: "5.5.34-0ubuntu0.12.04.1", client: "5.5.34", thread-safe: 1
MySQLdb1.2.3
Pygments1.4
Python2.7.3 (default, Sep 26 2013, 20:13:52) [GCC 4.6.3]
pytz2011k
setuptools0.6
jQuery1.7.2

Installed Plugins

NameVersionLocation
binary-agilo1.3.11-PRO/usr/local/lib/python2.7/dist-packages/binary_agilo-1.3.11_PRO-py2.7.egg
TracAccountManager0.5dev-r13204/usr/local/lib/python2.7/dist-packages/TracAccountManager-0.5dev_r13204-py2.7.egg
TracGit0.12.0.5dev/usr/local/lib/python2.7/dist-packages/TracGit-0.12.0.5dev-py2.7.egg
TracMigratePlugin0.12.0.1/usr/local/lib/python2.7/dist-packages/TracMigratePlugin-0.12.0.1-py2.7.egg

Configuration

SectionNameValue
account-manageraccount_changes_notify_addresses
allow_delete_accountTrue
auth_initTrue
cookie_refresh_pct10
environ_auth_overwriteTrue
force_passwd_changeTrue
generated_password_length8
hash_methodHtDigestHashMethod
htpasswd_filemypasswdfile
htpasswd_hash_typemd5
login_opt_list
notify_actions
password_storeHtPasswdStore
persistent_sessions
refresh_passwd
register_checkBasicCheck, EmailCheck, BotTrapCheck, RegExpCheck, UsernamePermCheck
reset_passwordTrue
user_lock_max_time86400
username_char_blacklist:[]
agilo-backlogsproduct_backlog.columnsbusinessvalue:editable, roif, story_priority:editable, rd_points:editable|total_story_points
product_backlog.include_planned_itemsFalse
product_backlog.nameProduct Backlog
sprint_backlog.chartsburndown
sprint_backlog.columnsremaining_time:editable|total_remaining_time, owner:editable, drp_resources:editable
sprint_backlog.include_planned_itemsFalse
sprint_backlog.nameSprint Backlog
agilo-generalbacklog_filter_attribute
burndown_should_show_working_days_only
should_reload_burndown_on_filter_change_when_filtering_by_component
sprints_can_start_or_end_on_weekends
use_days_for_time
agilo-linksallowrequirement-story, story-task, bug-task, bug-story
bug.calculatetotal_remaining_time=sum:get_outgoing.remaining_time
bug.task.copyowner, sprint
bug.task.showowner, remaining_time
cache.relatedfalse
cache.timeout0
requirement.calculatetotal_story_points=sum:get_outgoing.rd_points|type=story,mandatory_story_points=sum:get_outgoing.rd_points|type=story|story_priority=Mandatory,roif=div:businessvalue;mandatory_story_points
requirement.story.copyowner
requirement.story.showrd_points, story_priority
story.calculatetotal_remaining_time=sum:get_outgoing.remaining_time,estimated_remaining_time=mul:rd_points;get_sprint.get_team_metrics.rt_usp_ratio
story.task.copyowner, sprint
story.task.showowner, remaining_time
agilo-typesbugowner, sprint, priority
bug.aliasBug
requirementbusinessvalue, component, milestone, keywords
requirement.aliasRequirement
storycomponent, story_priority, keywords, rd_points, sprint
story.aliasUser Story
taskowner, sprint, remaining_time, drp_resources
task.aliasTask
attachmentmax_size10485760
max_zip_size10485760
render_unsafe_contentfalse
browsercolor_scaleTrue
downloadable_paths/trunk, /branches/*, /tags/*
hide_propertiessvk:merge
intermediate_color
intermediate_point
newest_color(255, 136, 136)
oldest_color(136, 136, 255)
oneliner_propertiestrac:summary
render_unsafe_contentfalse
wiki_propertiestrac:description
changesetmax_diff_bytes10000000
max_diff_files0
wiki_format_messagestrue
componentsacct_mgr.admin.*enabled
acct_mgr.api.*enabled
acct_mgr.db.sessionstoreenabled
acct_mgr.htfile.htdigeststoredisabled
acct_mgr.htfile.htpasswdstoreenabled
acct_mgr.http.httpauthstoredisabled
acct_mgr.notification.*enabled
acct_mgr.pwhash.htdigesthashmethoddisabled
acct_mgr.pwhash.htpasswdhashmethoddisabled
acct_mgr.svnserve.*enabled
acct_mgr.svnserve.svnservepasswordstoredisabled
acct_mgr.web_ui.*enabled
acct_mgr.web_ui.emailverificationmoduledisabled
agilo.*enabled
trac.ticket.api.ticketsystemdisabled
trac.ticket.roadmap.roadmapmoduledisabled
trac.ticket.web_ui.ticketmoduledisabled
trac.web.auth.loginmoduledisabled
header_logoaltArrrrrrrrrrrrrrr!
height-1
link/trac/project/
srcsite/logo.png
width-1
inherithtdocs_dir
plugins_dir
templates_dir/usr/local/lib/python2.7/dist-packages/binary_agilo-1.3.11_PRO-py2.7.egg/agilo/templates
logginglog_filetrac.log
log_format
log_levelDEBUG
log_typenone
milestonestats_providerDefaultTicketGroupStatsProvider
mimeviewermax_preview_size262144
mime_maptext/x-dylan:dylan, text/x-idl:ice, text/x-ada:ads:adb
mime_map_patternstext/plain:README|INSTALL|COPYING.*
pygments_default_styletrac
pygments_modes
tab_width8
treat_as_binaryapplication/octet-stream, application/pdf, application/postscript, application/msword,application/rtf,
notificationadmit_domains
always_notify_ownertrue
always_notify_reporterfalse
always_notify_updatertrue
ambiguous_char_widthsingle
batch_subject_template$prefix Batch modify: $tickets_descr
email_senderSmtpEmailSender
ignore_domains
mime_encodingnone
sendmail_pathsendmail
smtp_always_bcc
smtp_always_cc
smtp_default_domain
smtp_enabledtrue
smtp_fromm...@email.com
smtp_from_authorfalse
smtp_from_name
smtp_password
smtp_port25
smtp_replytom...@email.com
smtp_servermysmtpserver
smtp_subject_prefix__default__
smtp_user
ticket_subject_template$prefix #$ticket.id: $summary
use_public_ccfalse
use_short_addrfalse
use_tlsfalse
projectadmin
admin_trac_url.
descrMy Website
footerVisit the Trac open source project at<br /><a href="http://trac.edgewall.org/">http://trac.edgewall.org/</a>
iconagilo/images/favicon.ico
nameMy Website
url
querydefault_anonymous_querystatus!=closed&cc~=$USER
default_querystatus!=closed&owner=$USER
items_per_page100
ticketlink_query?status=!closed
reportitems_per_page100
items_per_page_rss0
revisionlogdefault_log_limit100
graph_colors['#cc0', '#0c0', '#0cc', '#00c', '#c0c', '#c00']
roadmapstats_providerDefaultTicketGroupStatsProvider
searchdefault_disabled_filters
min_query_length3
sqliteextensions
ticketdefault_cc
default_componentwww
default_description
default_keywords
default_milestoneUnscheduled Tickets
default_owner< default >
default_prioritymajor
default_resolutionfixed
default_severity
default_summary
default_typestory
default_version
max_comment_size262144
max_description_size262144
preserve_newlinesdefault
restrict_ownertrue
workflowConfigurableTicketWorkflow
ticket-custombusinessvalueselect
businessvalue.labelBusiness Value
businessvalue.options|100|200|300|500|800|1200|2000|3000
businessvalue.value
drp_resourcestext
drp_resources.labelResources
i_linkstext
i_links.labelReferenced By
o_linkstext
o_links.labelReferences
rd_pointsselect
rd_points.labelStory Points
rd_points.options|0|1|2|3|5|8|13|20|40|100
remaining_timetext
remaining_time.labelRemaining Time
sprintselect
sprint.labelSprint
sprint.value
story_priorityselect
story_priority.labelImportance
story_priority.options|Mandatory|Linear|Exciter
story_priority.value
ticket-workflowacceptnew,assigned,accepted,reopened -> accepted
accept.operationsset_owner_to_self
accept.permissionsTICKET_MODIFY
leave* -> *
leave.default1
leave.operationsleave_status
reassignnew,assigned,accepted,reopened -> assigned
reassign.operationsset_owner
reassign.permissionsTICKET_MODIFY
reopenclosed -> reopened
reopen.operationsdel_resolution
reopen.permissionsTICKET_CREATE
resolvenew,assigned,accepted,reopened -> closed
resolve.operationsset_resolution
resolve.permissionsTICKET_MODIFY
timelineabbreviated_messagesTrue
changeset_collapse_eventsfalse
changeset_long_messagesfalse
changeset_show_files0
default_daysback30
max_daysback90
newticket_formatteroneliner
ticket_show_detailsfalse
tracauth_cookie_lifetime
auth_cookie_path
authz_file
authz_module_name
auto_preview_timeout2.0
auto_reloadFalse
backup_dirdb
base_url
check_auth_ipfalse
databasemysql://username:password@host/db
debug_sqlFalse
default_charsetutf-8
default_date_format
default_dateinfo_formatrelative
default_handlerWikiModule
default_language
default_timezone
genshi_cache_size128
htdocs_location
ignore_auth_casefalse
jquery_location
jquery_ui_location
jquery_ui_theme_location
mainnavwiki, timeline, roadmap, browser, tickets, newticket, search
metanavlogin, logout, prefs, help, about
mysqldump_pathmysqldump
never_obfuscate_mailtofalse
permission_policiesAgiloPolicy, DefaultPermissionPolicy, LegacyAttachmentPolicy
permission_storeDefaultPermissionStore
pg_dump_pathpg_dump
repository_dir
repository_sync_per_request(default)
repository_typesvn
request_filters
resizable_textareastrue
secure_cookiesFalse
show_email_addressesfalse
show_ip_addressesfalse
timeout20
use_base_url_for_redirectFalse
use_xsendfilefalse
versioncontrolallowed_repository_dir_prefixes
wikiignore_missing_pagesfalse
max_size262144
render_unsafe_contentfalse
safe_schemescvs, file, ftp, git, irc, http, https, news, sftp, smb, ssh, svn, svn+ssh
split_page_namesfalse

Stefano Rago

unread,
Nov 19, 2013, 4:12:29 AM11/19/13
to ag...@googlegroups.com
Hi Thad,

On Nov 13, 2013, at 4:12 PM, Thad Miller <thad....@gmail.com> wrote:

I don't remember installing babel (it's been a LONG time), but according to the /about page, I do.  Here's the output...



Thanks a lot for providing the details of your environment, thanks to that, I was able to reproduce the issue and it seems related to the interaction with babel.
I have now filed a bug about this problem and our team will address it as soon as possible.
In the meantime, you can try and uninstall babel, if there is no other module that depends on it, and check if the issue is solved for you as well.

Thanks for pointing out the problem and have a nice day


Stefano Rago

Thad Miller

unread,
Nov 19, 2013, 10:24:04 AM11/19/13
to ag...@googlegroups.com
Hi Stefano,

Uninstalling babel did fix the issue.

Thanks for that.

Thad
Reply all
Reply to author
Forward
0 new messages