Closed Bug 1161197 Opened 9 years ago Closed 9 years ago

Accept inputs of start/stop times in Splice

Categories

(Content Services Graveyard :: Tiles: Administration Front-End, defect)

defect
Not set
normal
Points:
5

Tracking

(Not tracked)

RESOLVED FIXED
Iteration:
41.1 - May 25

People

(Reporter: oyiptong, Assigned: oyiptong)

References

()

Details

(Whiteboard: .?)

Start/Stop times need to be accepted in Splice and output in adgroups-enabled distributions
Assignee: nobody → oyiptong
The dates are going to be ISO8061 formatted, with an optional timezone description
Status: NEW → ASSIGNED
Will there ever be a need for timezone-unaware start/stop dates?

What I mean to say is:

Will anyone ever want to launch a campaign world-wide at Midnight Jan 1 GMT?
Or is it always Midnight Jan 1, in wherever the country a user is located?
Flags: needinfo?(jterry)
ISO8061 allows for optional timezone. If there's no timezone, we have start/stop times in local time, e.g., midnight everywhere. With a timezone, it'll be a simultaneous availability, e.g., 9pm pacific, midnight eastern.
Mardak: I'm wondering if we want to take that into consideration. Not allowing absolute times saves us a bit of complexity in the back end.

For instance, should we want to make this string computable, we want to store it as a DateTime object in a database. There is no concept of 'relative' datetimes on the server side.

If we store this as a DateTime column with Timezones, even if the TZ has not been specified, we'd still need a timezone.

If we store this as a DateTime column without Timezones, it makes it a lot easier, but we lose the ability to do both of 'relative' and 'absolute' date times.

We can of course do this either way we want, but we'd just need to write more code to do so. I was just wondering if it was worth bothering with it.
Yes, there will be times when campaigns will need to launch at a specific time, regardless of where the user is located. It's mostly about control of when media's running for the people managing the account.
Excellent. We can do both then.
Flags: needinfo?(jterry)
Blocks: 1156542
Iteration: 40.3 - 11 May → 41.1 - May 25
Commit pushed to master at https://github.com/mozilla/splice

https://github.com/mozilla/splice/commit/eb32638bc72de6a2dff7b9ee4a141745acebdbe1
Fix Bug 1161197 - Accept inputs of start/stop times in Splice
Closes #71
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.