aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/Utils.pm
Commit message (Collapse)AuthorAgeLines
* Stop loading an unused moduleTom Hukins2019-04-09-1/+0
| | | | The only use of File::Slurp was removed in 1c5c614af7a0265bd.
* Utils::prettify_duration improvementspezholio2017-02-15-3/+30
| | | | | - Add year and month to $nearest options - Allow prettify_duration to choose a sensible $nearest if omitted
* Don't double-decode strftime output.Matthew Somerville2016-11-22-5/+6
| | | | | As with d3d0ab6d, we need to only decode_utf8 strftime output that has not already been decoded, to prevent errors in Perl 5.20+.
* Some tests for the Util modules.Matthew Somerville2016-09-20-14/+3
|
* [fixmystreet.com] Remove unused Barnet code.Matthew Somerville2015-09-03-31/+0
|
* [fixmystreet.com] Remove special Report-It code.Matthew Somerville2015-03-13-29/+0
|
* [UK] Output NI grid references to NI councils.Matthew Somerville2015-02-20-2/+3
|
* Create timezone objects only once at startup.Matthew Somerville2015-02-13-1/+1
| | | | | | Cache a DateTime::TimeZone::Local object, so that in an environment where /etc/localtime is a copy of a timezone file, we don't repeatedly walk all the timezone files to find the matching one.
* Use env in shebang lines, and remove unneeded onesMatthew Somerville2015-01-19-2/+0
|
* Tidy up of bin directory.Matthew Somerville2015-01-19-1/+0
| | | | | Remove some unneeded scripts, move others to cobrand-specific directories.
* Report moderationHakim Cassimally2014-08-13-0/+1
| | | | | | | | | | | - redaction marked with [...] - of report and comments - stores original data - uses a single form, on the report/_main view - requires additional permissions (user_body_permissions) - Hide report functionality - Moderation notification/contact form - Moderation writes to admin_log
* Add note for removal of Barnet-specific categoriesDave Arter2014-04-25-1/+3
|
* Remove *_local tz functions, set timezone on fetching original columns from ↵Matthew Somerville2013-02-14-6/+1
| | | | database.
* Zurich-specific date output on reports.Matthew Somerville2013-01-25-0/+2
|
* Stop changing DateTimes to epochs and back.Matthew Somerville2013-01-25-3/+2
| | | | | | | Also revert cursor handling of Reports.pm; the DateTime inflation appears to be a slowdown, and we were doing that anyway, and this way makes things simpler in general. Will have a watch out for any performance issue, but hopefully it should be fine.
* Remove unused function, add gridref test.Matthew Somerville2012-11-12-18/+0
|
* Some fixes for when warnings are on during test run.Matthew Somerville2012-11-09-0/+1
|
* change Barnet testing KBIDDave Whiteland2012-10-31-12/+1
|
* Update .po file, and make prettify function do nget() properly.Matthew Somerville2012-10-08-6/+16
|
* Add TIME_ZONE variable for local display of times.Matthew Somerville2012-10-08-12/+19
|
* remove 'Abandoned Vehicle' from barnet_categories (KBID 468)Dave Whiteland2012-09-17-1/+0
|
* added switch on staging site for Barnet integration-server vs. productionDave Whiteland2012-04-16-21/+37
|
* added Overhanging Foliage as new category/KBIDDave Whiteland2012-04-16-0/+1
|
* washed Barnet category names, removed prefixed 0 on value for Road SignDave Whiteland2012-04-16-8/+8
|
* updated with Barnet's confirmed KBIDs (category id mappings)Dave Whiteland2012-04-16-13/+18
|
* only include categories for QA testing, removed 'Other' optionDave Whiteland2012-03-23-21/+13
|
* Added Barnet category -> kbid mappings, included some useful categories ↵Dave Whiteland2012-03-23-0/+27
| | | | since we have a default kbid to cover those
* update cleanup text to deal with alternative spellingStruan Donald2012-03-20-1/+1
|
* Decode template files read in with read_file, to prevent double encoding ↵Matthew Somerville2011-09-20-0/+14
| | | | (fixes #159). Also fix Welsh I18N test.
* Fix broken lack of paragraphing, fixes #140.Matthew Somerville2011-08-09-1/+1
|
* Sort problems, and have a map, maybe.Matthew Somerville2011-06-28-9/+14
|
* Centralise UK location check to catch edge cases.Matthew Somerville2011-06-17-0/+1
|
* Final bits of Page.pm gone.Matthew Somerville2011-06-07-0/+50
|
* move trim_text and cleanup_text to UtilsStruan Donald2011-05-20-0/+70
|
* Have fixed categories in London, from Report-It API.Matthew Somerville2011-04-02-0/+29
|
* Tweaks to OSM map module, fix for truncated co-ords.Matthew Somerville2011-02-14-1/+3
|
* Helper function for all latlon to OSGB36 calls.Matthew Somerville2011-02-11-4/+24
|
* Created function to convert e,n to lat,lon and optionally truncate resultsEdmund von der Burg2011-02-10-6/+64
|
* Switch flickr state to partial, tidy up code, so soon other things can use ↵matthew2008-10-09-0/+30
it too. Few text tweaks also, and other bits and bobs.