func DecodeCursor(encodedTime string) (time.Time, error) {
	byt, err := base64.StdEncoding.DecodeString(encodedTime)
	if err != nil {
		return time.Time{}, err
	}
	timeString := string(byt)
	t, err := time.Parse(timeFormat, timeString)
	return t, err
}
DecodeCursor will decode cursor from user for mysql
package repository
import (
	"encoding/base64"
	"time"
)
const (
	timeFormat = "2006-01-02T15:04:05.999Z07:00"  
)