-
Notifications
You must be signed in to change notification settings - Fork 428
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove obsolete XEP-0091 timestamp #383
Merged
michalwski
merged 10 commits into
esl:master
from
gmodarelli:stop-sending-obsolete-XEP-0091
Mar 16, 2015
Merged
Changes from 3 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
1e98fb3
Don't send obsolete XEP-0091 timestamp
gmodarelli e07ed69
Remove commented lines
gmodarelli 1a0cf18
Remove timestamp_to_xml/1
gmodarelli 99afb77
Rename timestamp_legacy_xml to timestamp_xml
gmodarelli 2539368
Remove timestamp_to_iso obsolete function
gmodarelli 203b215
Restore timestapo_to_iso
gmodarelli ab003e7
Remove obsolete timestamp_to_iso/1
gmodarelli fe38acc
Fix call to undefined function calendar:datetime/1
gmodarelli 6658d86
Remove date from random password
gmodarelli f74471f
Use universal time in banned password date
gmodarelli File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,7 +54,6 @@ | |
parse_xdata_submit/1, | ||
timestamp_to_iso/1, % TODO: Remove once XEP-0091 is Obsolete | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just noticed that there is another obsolete function. I'd remove it also and see if our tests run by travis passes. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @michalwski I removed this one too. |
||
timestamp_to_xml/4, | ||
timestamp_to_xml/1, % TODO: Remove once XEP-0091 is Obsolete | ||
timestamp_to_mam_xml/4, | ||
now_to_utc_binary/1, | ||
datetime_binary_to_timestamp/1, | ||
|
@@ -778,24 +777,6 @@ timestamp_to_mam_xml(DateTime, Timezone, QueryID, MessageUID) -> | |
{<<"id">>, MessageUID}] ++ | ||
[{<<"queryid">>, QueryID} || QueryID =/= undefined, QueryID =/= <<>>]}. | ||
|
||
|
||
%% @doc TODO: Remove this function once XEP-0091 is Obsolete | ||
-spec timestamp_to_xml(calendar:datetime()) -> xmlel(). | ||
timestamp_to_xml({{Year, Month, Day}, {Hour, Minute, Second, Micro}}) -> | ||
#xmlel{name = <<"x">>, | ||
attrs = [{<<"xmlns">>, ?NS_DELAY91}, | ||
{<<"stamp">>, lists:flatten( | ||
io_lib:format("~4..0w~2..0w~2..0wT~2..0w:~2..0w:~2..0w.~6..0w", | ||
[Year, Month, Day, Hour, Minute, Second, Micro]))}]}; | ||
|
||
timestamp_to_xml({{Year, Month, Day}, {Hour, Minute, Second}}) -> | ||
#xmlel{name = <<"x">>, | ||
attrs = [{<<"xmlns">>, ?NS_DELAY91}, | ||
{<<"stamp">>, lists:flatten( | ||
io_lib:format("~4..0w~2..0w~2..0wT~2..0w:~2..0w:~2..0w", | ||
[Year, Month, Day, Hour, Minute, Second]))}]}. | ||
|
||
|
||
-spec now_to_utc_string(erlang:timestamp()) -> string(). | ||
now_to_utc_string({MegaSecs, Secs, MicroSecs}) -> | ||
{{Year, Month, Day}, {Hour, Minute, Second}} = | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that somebody confused the binding/function name and named the modern format as legacy. It's a good opportunity to fix it :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@studzien I hope the new name is ok. Thanks for the feedback