switching the formatter

This commit is contained in:
Will Charczuk 2016-07-27 00:20:43 -07:00
parent 05caeb41ee
commit 865ba96eb5

View file

@ -18,6 +18,8 @@ type MarketHoursRange struct {
HolidayProvider date.HolidayProvider
ValueFormatter ValueFormatter
Domain int
}
@ -102,7 +104,7 @@ func (mhr *MarketHoursRange) GetTicks(vf ValueFormatter) []Tick {
}
func (mhr MarketHoursRange) String() string {
return fmt.Sprintf("MarketHoursRange [%s, %s] => %d", mhr.Min.Format(DefaultDateFormat), mhr.Max.Format(DefaultDateFormat), mhr.Domain)
return fmt.Sprintf("MarketHoursRange [%s, %s] => %d", mhr.Min.Format(DefaultDateMinuteFormat), mhr.Max.Format(DefaultDateMinuteFormat), mhr.Domain)
}
// Translate maps a given value into the ContinuousRange space.