Changeset 2713
- Timestamp:
- 10/26/07 05:03:41 (1 year ago)
- Files:
-
- clientsplugin/0.11/cron/send-client-email (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
clientsplugin/0.11/cron/send-client-email
r2707 r2713 156 156 157 157 def __init__(self): 158 def myformat_date(dte): 159 if dte: 160 return format_date(dte) 161 return 'No date set' 162 158 163 locale.setlocale(locale.LC_ALL, '') 159 164 self.env = open_environment(options.envpath) … … 211 216 xml.write('<client>') 212 217 xml.write('<name>%s</name>' % name) 213 xml.write('<lastupdate>%s</lastupdate>' % format_date(lastupdate))218 xml.write('<lastupdate>%s</lastupdate>' % myformat_date(lastupdate)) 214 219 xml.write('</client>') 215 220 … … 237 242 xml.write('<status>%s</status>' % status) 238 243 xml.write('<milestone>%s</milestone>' % milestone) 239 xml.write('<due>%s</due>' % format_date(due))244 xml.write('<due>%s</due>' % myformat_date(due)) 240 245 xml.write('</ticket>') 241 246 … … 289 294 xml.write('<description>%s</description>' % wiki_to_html(extract_client_text(description), self.env, self.req)) 290 295 xml.write('<milestone>%s</milestone>' % milestone) 291 xml.write('<due>%s</due>' % format_date(due))296 xml.write('<due>%s</due>' % myformat_date(due)) 292 297 xml.write('<changelog>') 293 298
