Skip to content
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

[CBRD-25236] Output error related to TZM in timezone information #5002

Merged

Conversation

ctshim
Copy link
Contributor

@ctshim ctshim commented Feb 29, 2024

http://jira.cubrid.org/browse/CBRD-25236

  • When obtaining TZM information from the to_char() and time_format() functions, it appears differently from the date_format() function.
;set timezone="-09:10"
SELECT  TO_CHAR(datetime'2009-10-04 11:07:00', 'TZH TZM TZH:TZM'),DATE_FORMAT(datetime'2009-10-04 11:07:00', '%TZH %TZM %TZH:%TZM'), TIME_FORMAT(datetime'2009-10-04 11:07:00', '%TZH %TZM %TZH:%TZM');
SELECT  TO_CHAR(datetime'2009-10-04 11:07:00', 'TZH TZH TZH TZH'),DATE_FORMAT(datetime'2009-10-04 11:07:00', '%TZH %TZH %TZH %TZH'),TIME_FORMAT(datetime'2009-10-04 11:07:00', '%TZH %TZM %TZH:%TZM');
SELECT  TO_CHAR(datetime'2009-10-04 11:07:00', 'TZM TZM TZM TZM'),DATE_FORMAT(datetime'2009-10-04 11:07:00', '%TZM %TZM %TZM %TZM'),TIME_FORMAT(datetime'2009-10-04 11:07:00', '%TZM %TZM %TZM %TZM');

;set timezone="-00:30"
SELECT  TO_CHAR(datetime'2009-10-04 11:07:00', 'TZH TZM TZH:TZM'),DATE_FORMAT(datetime'2009-10-04 11:07:00', '%TZH %TZM %TZH:%TZM'), TIME_FORMAT(datetime'2009-10-04 11:07:00', '%TZH %TZM %TZH:%TZM');
SELECT  TO_CHAR(datetime'2009-10-04 11:07:00', 'TZH TZH TZH TZH'),DATE_FORMAT(datetime'2009-10-04 11:07:00', '%TZH %TZH %TZH %TZH'),TIME_FORMAT(datetime'2009-10-04 11:07:00', '%TZH %TZM %TZH:%TZM');
SELECT  TO_CHAR(datetime'2009-10-04 11:07:00', 'TZM TZM TZM TZM'),DATE_FORMAT(datetime'2009-10-04 11:07:00', '%TZM %TZM %TZM %TZM'),TIME_FORMAT(datetime'2009-10-04 11:07:00', '%TZM %TZM %TZM %TZM');

;set timezone="+09:10"
SELECT  TO_CHAR(datetime'2009-10-04 11:07:00', 'TZH TZM TZH:TZM'),DATE_FORMAT(datetime'2009-10-04 11:07:00', '%TZH %TZM %TZH:%TZM'), TIME_FORMAT(datetime'2009-10-04 11:07:00', '%TZH %TZM %TZH:%TZM');
SELECT  TO_CHAR(datetime'2009-10-04 11:07:00', 'TZH TZH TZH TZH'),DATE_FORMAT(datetime'2009-10-04 11:07:00', '%TZH %TZH %TZH %TZH'),TIME_FORMAT(datetime'2009-10-04 11:07:00', '%TZH %TZM %TZH:%TZM');
SELECT  TO_CHAR(datetime'2009-10-04 11:07:00', 'TZM TZM TZM TZM'),DATE_FORMAT(datetime'2009-10-04 11:07:00', '%TZM %TZM %TZM %TZM'),TIME_FORMAT(datetime'2009-10-04 11:07:00', '%TZM %TZM %TZM %TZM');

;set timezone="+00:30"
SELECT  TO_CHAR(datetime'2009-10-04 11:07:00', 'TZH TZM TZH:TZM'),DATE_FORMAT(datetime'2009-10-04 11:07:00', '%TZH %TZM %TZH:%TZM'), TIME_FORMAT(datetime'2009-10-04 11:07:00', '%TZH %TZM %TZH:%TZM');
SELECT  TO_CHAR(datetime'2009-10-04 11:07:00', 'TZH TZH TZH TZH'),DATE_FORMAT(datetime'2009-10-04 11:07:00', '%TZH %TZH %TZH %TZH'),TIME_FORMAT(datetime'2009-10-04 11:07:00', '%TZH %TZM %TZH:%TZM');
SELECT  TO_CHAR(datetime'2009-10-04 11:07:00', 'TZM TZM TZM TZM'),DATE_FORMAT(datetime'2009-10-04 11:07:00', '%TZM %TZM %TZM %TZM'),TIME_FORMAT(datetime'2009-10-04 11:07:00', '%TZM %TZM %TZM %TZM');

@ctshim ctshim added the bug label Feb 29, 2024
@ctshim ctshim added this to the fig-cake milestone Feb 29, 2024
@ctshim ctshim self-assigned this Feb 29, 2024
@ctshim ctshim marked this pull request as ready for review March 3, 2024 22:54
@ctshim ctshim requested a review from beyondykk9 as a code owner March 3, 2024 22:54
@ctshim ctshim requested review from hgryoo and hyunikn March 3, 2024 22:54
@ctshim ctshim merged commit 9c92138 into CUBRID:develop Mar 4, 2024
10 checks passed
mhoh3963 pushed a commit to mhoh3963/cubrid that referenced this pull request Aug 6, 2024
…RID#5002)

http://jira.cubrid.org/browse/CBRD-25236

* When obtaining TZM information from the to_char() and time_format() functions, it appears differently from the date_format() function.
mhoh3963 pushed a commit to mhoh3963/cubrid that referenced this pull request Aug 6, 2024
…RID#5002)

http://jira.cubrid.org/browse/CBRD-25236

* When obtaining TZM information from the to_char() and time_format() functions, it appears differently from the date_format() function.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants