| 66 | == Bugfix == |
| 67 | |
| 68 | To fix encoding problems for e.g. german users add the following code to the script: |
| 69 | |
| 70 | {{{ |
| 71 | import locale |
| 72 | |
| 73 | def 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 | |
| 84 | If 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 | |
| 95 | I can not offer any patch here because the maximum count of external links is reached for this ticket. |
| 96 | |