Permalink
Browse files

Fixed hour and minute translation templates.

  • Loading branch information...
sdlime committed Sep 1, 2014
1 parent d4fe121 commit 69e62e488a6bad866b5a82c27af601a1cba9c003
Showing with 2 additions and 2 deletions.
  1. +2 −2 mappostgis.c
View
@@ -3742,11 +3742,11 @@ int msPostGISLayerTranslateFilter(layerObj *layer, expressionObj *filter, char *
sprintf(snippet, strtmpl, (node->tokenval.tmval.tm_year+1900), (node->tokenval.tmval.tm_mon+1), node->tokenval.tmval.tm_mday);
break;
case TIME_RESOLUTION_HOUR:
- strtmpl = "to_timestamp('%d-%02d-%02d %02d:%02d:%02d','YYYY-MM-DD hh24')";
+ strtmpl = "to_timestamp('%d-%02d-%02d %02d','YYYY-MM-DD hh24')";
sprintf(snippet, strtmpl, (node->tokenval.tmval.tm_year+1900), (node->tokenval.tmval.tm_mon+1), node->tokenval.tmval.tm_mday, node->tokenval.tmval.tm_hour);
break;
case TIME_RESOLUTION_MINUTE:
- strtmpl = "to_timestamp('%d-%02d-%02d %02d:%02d:%02d','YYYY-MM-DD hh24:mi')";
+ strtmpl = "to_timestamp('%d-%02d-%02d %02d:%02d','YYYY-MM-DD hh24:mi')";
sprintf(snippet, strtmpl, (node->tokenval.tmval.tm_year+1900), (node->tokenval.tmval.tm_mon+1), node->tokenval.tmval.tm_mday, node->tokenval.tmval.tm_hour, node->tokenval.tmval.tm_min);
break;
case TIME_RESOLUTION_SECOND:

0 comments on commit 69e62e4

Please sign in to comment.