Fix date query string format
fix some minor bugs
Package time series data for activity.
Merge with master.