Fix justify_days() for integer datestamp, clean up code.
Fix justify_days() for integer datestamp, clean up code.

jmcatamney/gpdb,xuegang/gpdb,randomtask1155/gpdb,rubikloud/gpdb,Chibin/gpdb,janebeckman/gpdb,atris/gpdb,50wu/gpdb,foyzur/gpdb,rvs/gpdb,cjcjameson/gpdb,pavanvd/postgres-xl,CraigHarris/gpdb,Chibin/gpdb,Chibin/gpdb,techdragon/Postgres-XL,rubikloud/gpdb,zeroae/postgres-xl,0x0FFF/gpdb,rvs/gpdb,ashwinstar/gpdb,cjcjameson/gpdb,arcivanov/postgres-xl,snaga/postgres-xl,ashwinstar/gpdb,CraigHarris/gpdb,jmcatamney/gpdb,ashwinstar/gpdb,cjcjameson/gpdb,tangp3/gpdb,zaksoup/gpdb,Quikling/gpdb,yazun/postgres-xl,xuegang/gpdb,kaknikhil/gpdb,Quikling/gpdb,oberstet/postgres-xl,chrishajas/gpdb,adam8157/gpdb,Chibin/gpdb,royc1/gpdb,postmind-net/postgres-xl,ahachete/gpdb,lintzc/gpdb,tangp3/gpdb,janebeckman/gpdb,royc1/gpdb,janebeckman/gpdb,tangp3/gpdb,greenplum-db/gpdb,edespino/gpdb,xuegang/gpdb,postmind-net/postgres-xl,arcivanov/postgres-xl,0x0FFF/gpdb,kmjungersen/PostgresXL,yuanzhao/gpdb,Quikling/gpdb,zaksoup/gpdb,lintzc/gpdb,xinzweb/gpdb,zeroae/postgres-xl,greenplum-db/gpdb,Quikling/gpdb,janebeckman/gpdb,xuegang/gpdb,xinzweb/gpdb,Quikling/gpdb,adam8157/gpdb,Chibin/gpdb,ashwinstar/gpdb,ovr/postgres-xl,tpostgres-projects/tPostgres,postmind-net/postgres-xl,CraigHarris/gpdb,janebeckman/gpdb,adam8157/gpdb,arcivanov/postgres-xl,CraigHarris/gpdb,jmcatamney/gpdb,50wu/gpdb,chrishajas/gpdb,edespino/gpdb,pavanvd/postgres-xl,ashwinstar/gpdb,randomtask1155/gpdb,Chibin/gpdb,cjcjameson/gpdb,zeroae/postgres-xl,techdragon/Postgres-XL,rubikloud/gpdb,yuanzhao/gpdb,kaknikhil/gpdb,foyzur/gpdb,Postgres-XL/Postgres-XL,xuegang/gpdb,foyzur/gpdb,greenplum-db/gpdb,ahachete/gpdb,cjcjameson/gpdb,rubikloud/gpdb,CraigHarris/gpdb,CraigHarris/gpdb,rubikloud/gpdb,yazun/postgres-xl,foyzur/gpdb,royc1/gpdb,lintzc/gpdb,kmjungersen/PostgresXL,edespino/gpdb,lpetrov-pivotal/gpdb,tangp3/gpdb,snaga/postgres-xl,lintzc/gpdb,randomtask1155/gpdb,tpostgres-projects/tPostgres,edespino/gpdb,adam8157/gpdb,postmind-net/postgres-xl,0x0FFF/gpdb,yuanzhao/gpdb,0x0FFF/gpdb,tpostgres-projects/tPostgres,lisakowen/gpdb,xinzweb/gpdb,0x0FFF/gpdb,Quikling/gpdb,yuanzhao/gpdb,foyzur/gpdb,adam8157/gpdb,Quikling/gpdb,postmind-net/postgres-xl,Chibin/gpdb,xinzweb/gpdb,pavanvd/postgres-xl,adam8157/gpdb,kmjungersen/PostgresXL,techdragon/Postgres-XL,rubikloud/gpdb,chrishajas/gpdb,lpetrov-pivotal/gpdb,greenplum-db/gpdb,lpetrov-pivotal/gpdb,cjcjameson/gpdb,ashwinstar/gpdb,greenplum-db/gpdb,snaga/postgres-xl,foyzur/gpdb,royc1/gpdb,atris/gpdb,arcivanov/postgres-xl,zaksoup/gpdb,greenplum-db/gpdb,jmcatamney/gpdb,adam8157/gpdb,edespino/gpdb,lintzc/gpdb,lisakowen/gpdb,ovr/postgres-xl,xuegang/gpdb,royc1/gpdb,chrishajas/gpdb,lisakowen/gpdb,tangp3/gpdb,ovr/postgres-xl,50wu/gpdb,Chibin/gpdb,yuanzhao/gpdb,50wu/gpdb,chrishajas/gpdb,0x0FFF/gpdb,zaksoup/gpdb,ahachete/gpdb,Quikling/gpdb,royc1/gpdb,50wu/gpdb,randomtask1155/gpdb,randomtask1155/gpdb,cjcjameson/gpdb,ovr/postgres-xl,atris/gpdb,Quikling/gpdb,Quikling/gpdb,lpetrov-pivotal/gpdb,tangp3/gpdb,lpetrov-pivotal/gpdb,jmcatamney/gpdb,xuegang/gpdb,kaknikhil/gpdb,ashwinstar/gpdb,rvs/gpdb,zaksoup/gpdb,kaknikhil/gpdb,foyzur/gpdb,rvs/gpdb,pavanvd/postgres-xl,oberstet/postgres-xl,kaknikhil/gpdb,lpetrov-pivotal/gpdb,lisakowen/gpdb,cjcjameson/gpdb,Chibin/gpdb,greenplum-db/gpdb,rubikloud/gpdb,0x0FFF/gpdb,oberstet/postgres-xl,xinzweb/gpdb,yuanzhao/gpdb,lintzc/gpdb,tangp3/gpdb,randomtask1155/gpdb,edespino/gpdb,zeroae/postgres-xl,lpetrov-pivotal/gpdb,janebeckman/gpdb,yazun/postgres-xl,50wu/gpdb,rvs/gpdb,ovr/postgres-xl,50wu/gpdb,jmcatamney/gpdb,atris/gpdb,janebeckman/gpdb,CraigHarris/gpdb,yazun/postgres-xl,rvs/gpdb,Chibin/gpdb,zeroae/postgres-xl,jmcatamney/gpdb,atris/gpdb,janebeckman/gpdb,rvs/gpdb,cjcjameson/gpdb,kaknikhil/gpdb,CraigHarris/gpdb,randomtask1155/gpdb,kaknikhil/gpdb,ahachete/gpdb,chrishajas/gpdb,jmcatamney/gpdb,greenplum-db/gpdb,50wu/gpdb,foyzur/gpdb,lisakowen/gpdb,CraigHarris/gpdb,yuanzhao/gpdb,techdragon/Postgres-XL,ahachete/gpdb,oberstet/postgres-xl,atris/gpdb,pavanvd/postgres-xl,oberstet/postgres-xl,xinzweb/gpdb,janebeckman/gpdb,randomtask1155/gpdb,tpostgres-projects/tPostgres,Postgres-XL/Postgres-XL,edespino/gpdb,kaknikhil/gpdb,royc1/gpdb,kaknikhil/gpdb,snaga/postgres-xl,lintzc/gpdb,xinzweb/gpdb,ahachete/gpdb,arcivanov/postgres-xl,atris/gpdb,tpostgres-projects/tPostgres,edespino/gpdb,Postgres-XL/Postgres-XL,edespino/gpdb,zaksoup/gpdb,lintzc/gpdb,yazun/postgres-xl,zaksoup/gpdb,cjcjameson/gpdb,rvs/gpdb,lisakowen/gpdb,tangp3/gpdb,Postgres-XL/Postgres-XL,rubikloud/gpdb,yuanzhao/gpdb,xuegang/gpdb,ahachete/gpdb,lintzc/gpdb,yuanzhao/gpdb,lisakowen/gpdb,snaga/postgres-xl,lisakowen/gpdb,chrishajas/gpdb,0x0FFF/gpdb,xuegang/gpdb,kmjungersen/PostgresXL,techdragon/Postgres-XL,edespino/gpdb,ahachete/gpdb,lpetrov-pivotal/gpdb,kaknikhil/gpdb,chrishajas/gpdb,atris/gpdb,ashwinstar/gpdb,janebeckman/gpdb,yuanzhao/gpdb,xinzweb/gpdb,rvs/gpdb,royc1/gpdb,rvs/gpdb,arcivanov/postgres-xl,zaksoup/gpdb,kmjungersen/PostgresXL,adam8157/gpdb,Postgres-XL/Postgres-XL