Changes between Version 12 and Version 13 of WikiTicketCalendarMacro


Ignore:
Timestamp:
Feb 3, 2009, 12:00:55 PM (15 years ago)
Author:
anonymous
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WikiTicketCalendarMacro

    v12 v13  
    6464}}}
    6565
     66== Bugfix ==
     67
     68To fix encoding problems for e.g. german users add the following code to the script:
     69
     70{{{
     71import locale
     72
     73def expand_macro(self, formatter, name, arguments):
     74
     75  loc = locale.setlocale(locale.LC_ALL)
     76  locale.setlocale(locale.LC_TIME, 'english')
     77  .
     78  .
     79  .
     80  locale.setlocale(locale.LC_ALL, loc)
     81  return Markup(table)
     82}}}
     83
     84If you want to use one of the latest patches be sure to fix the daylight saving problem and change:
     85{{{
     86  duedatestamp = time.mktime((year, month, day, 0, 0, 0, 0, 0, -1))
     87  duedatestamp_eod = time.mktime((year, month, day, 23, 59, 0, 0, 0, -1))
     88
     89  to
     90
     91  duedatestamp = time.mktime((year, month, day, 0, 0, 0, 0, 0, 0))
     92  duedatestamp_eod = time.mktime((year, month, day, 23, 59, 0, 0, 0, 0))
     93}}}
     94
     95I can not offer any patch here because the maximum count of external links is reached for this ticket.
     96
    6697== Recent Changes ==
    6798