func (t Time) MarshalJSON() ([]byte, error) {
	str := t.String()
	jsonStr, err := json.Marshal(str)
	if err != nil {
		return nil, err
	}
	return []byte(jsonStr), nil
}
MarshalJSON marshals the timestamp with RFC3339 format
package api
import (
	"encoding/json"
	"time"
)
const TimeFormat = time.RFC3339
type Time struct {
	time.Time
}
func (t Time) String() string {
	return t.Format(TimeFormat)
}